I am attempting to implement different CSS files for the mobile and desktop versions of my website in the following manner:
<link rel="stylesheet" media="screen and (min-width: 768px)" href="home.css" />
<link rel="stylesheet" media="screen and (max-width: 767px)" href="home-mobile.css" />
However, upon checking in Chrome, I noticed that both of my CSS files are being loaded. The issue seems to be that home-mobile.css has a higher priority than home.css on lower widths, and vice versa.
Is there a way to ensure that only home-mobile.css is loaded on an actual mobile device?