ms.device

It contains the information of the current device.


Variables

Value Description
isMobile This variable defines that if its value is true or 1, then the site displays on mobile and vice-versa.
isMobileApp This variable defines that if its value is true or 1, then the site display on mobile app (android or iOS) and vice-versa.
os The variable tells the name of operating system used in the mobile.
isDesktop This variable defines that if its value is true or 1, then the site display on desktop and vice-versa.