I develop a webapp with bootstrap 4 as front-end framework. My app is desktop first, but i make some of view adapt to mobile and a special menu adapt to mobile.
My app break at 768 px, under it become the mobile view.
When i test it on my mobile (samuns galaxy a51), on portrait its OK, but on landscape it show the desktop version, and its not what i want.
My smartphone resolution is 2400 x 1080, so im wondering two things :
- based on what i understand, in portrait i suppose to have 1080 px width with my phone, so why the app is shown as the mobile version ? (this is what i want, but i dont understand how it works)
- on landscape its 2400 and desktop version is shown (which is logical), but its not what i want. but the media queries in boostrap is based on pixel, so how to deal with that ?
actually i don't understand why its based on pixel, its not a good way to determine the responsive (we can have a small screen with big resolution). A mix between the resolution and the screen size would be a better idea.
How you deal with that in your projects ? what the best way to make something really adapt to mobile and tablet ?
thanks for your help