I am facing a challenge with managing two separate <style>
tags that each contain a large number of styles and media queries. The issue is that one set of styles is intended for desktop users, while the other is meant for mobile users. When both sets of media queries are active, it causes display problems as different components appear at different sizes. Previously, I was dynamically linking style sheets based on user display, but now I have been tasked with consolidating everything onto a single page without additional file loading. Is there a way to exclusively apply one set of styles or the other using JavaScript?