What CSS file did the browser fetch? The one for screens less than 500px wide? Or the one for screens that are 504px wide?
There are a million ways to exfiltrate UI parameters through JS and CSS. It’s hard to both prevent that and still allow JS and responsive pages.