As indicated by the title, I have designed a responsive web app using the React framework along with various @media queries. When I resize the page in Developer Tools' Device Mode, the queries work perfectly fine and everything functions as expected. However, when I resize the actual browser window, the media queries fail to work. I even attempted changing the screen resolution, but the issue persisted.
Here are my @media queries:
@media only screen and (max-device-width: 768px) {...}
@media only screen and (max-device-width: 768px) and (min-device-width: 691px) {...}
@media only screen and (max-device-width: 768px) and (min-device-width: 576px) {...}
@media only screen and (max-device-width: 939px) and (min-device-width: 769px) {...}
@media only screen and (min-device-width: 940px) {...}
@media only screen and (min-device-width: 1024px) {...}
@media only screen and (min-device-width: 1200px) {...}
@media only screen and (min-device-width: 1510px) {...}
While it may appear somewhat disorganized due to mixing min and max criteria under certain circumstances, it works flawlessly in Device Mode.
Regarding the HTML viewport meta tag:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
I also experimented with altering or deleting the viewport meta tag, yet the problem persists. What could be causing this issue?!