title: Set mobile mode based on screen resolution size in MVC?
body: <p>Is there a way to categorize requests as mobile or desktop based on screen size instead of user agent? </p>
  
  <p>For example, the iPad retina would have no problem viewing my site as a desktop, but I would want iPad 1 to be recognized as a mobile device. It would be out of control if I tried determining the screen size from the user agent for Android devices. Is there a way to do something like this in MVC:</p>
  
  <p><code>if (screen size &lt; 840px)
    HttpContext.SetOverriddenBrowser(BrowserOverride.Mobile)</code></p>