In both the cases, when my device is in landscape mode, then its width is 800 so css should get apply in both cases, but only the second one gets applied.
device widths do not change simply because you rotate the device sideways.
You shouldn’t need so many media queries. You seem to be trying to target specific screens and devices. You say “your phone” - well what about devices that are a bit smaller or bigger? You’ll have to also write queries for them!
3? Where did you get 3? The small/medium/large examples?
Generally I have the regular page (no queries), and then around tablet mode I’ll throw in a query for small changes…stacking columns, etc.
If I REALLY need a certain display on mobile I’ll throw in a second query for mobile-specific. Other htan that…no you really shouldn’t need that many.
That was purely an example and you shouldn’t read into that / the specific widths I did.
You make it future proof by forgetting devices exist. Code to make it fully fluid / responsive without worrying about devices. Worry how it scales. Devices will display fine accordingly.
Vinpkl - a good approach is to not have a preset of breakpoints or say “i’m creating media queries for laptop, tablet, and phone”. Instead shrink your browser, when your site breaks, you have a break point. Write a media query for that. Shrink, find a breakpoint and then write.