How to know if a mobile device is showing desktop?
I have seen very many questions asking how to detect if a device is mobile or not. Generally, they fall into 3 categories: Check the screen size/viewport Check the User Agent Use a library, such as Modernizr to work around browser capabilities. After implementing what I could, I still run across a situation which I have never seen asked or addressed; On many mobile browsers, there is a "Request desktop site" (Chrome) "Desktop Mode" (Dolphin) or "Desktop View" (HTC Sense). I have chosen strategy #1 above, which works unless the page is viewed in desktop mode. Implementing #2 has drawbacks (spoo
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.