title: Durable solution to get the user device type?
body: <p>I'm developping a C# MVC Application that requires to know what kind of device the user is using (desktop/phone/tablet).</p>
  
  <p>I need this information to display the menu in different sizes/shapes.</p>
  
  <p>I tried to use @Media Queries with different sizes. The problem is that sometime the resolution of the tablet is as large as a desktop screen, and i don't want the same design on both.</p>
  
  <p>I searched on StackOverflow and found out about "User agent" but this solution isn't realiable apparently because this is always moving which is not a good thing.</p>
  
  <p>Is there a durable solution without Media Queries/User Agent to know what device is the user using ?</p>
  
  <p>Is_tablet,Is_Phone,Is_Mobile would be a dream but any compatible solution would give me satisfaction.</p>