My mobile resolution is 2960PX×1440PX and my desktop resolution is 1366x768. From that, mobile resolution is bigger than desktop. While using media queries, my mobile should render desktop website instead of mobile website as the resolution of mobile is more. Is there any the difference between mobile resolution and desktop resolution? On what basis these media queries are handled.
// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }
// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }
// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }
// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
Can Refer the below link: https://codepen.io/TrentWalton/pen/kqxDy
If I look at the link via mobile, I can able to see the boxes one after other i.e. Orange Block then in the next line, Blue Block even though mobile resolution is more.