Is this possible? I know of display:none, but does that actually stop the element (ie an ad) from loading? Doesn’t it still load in the background, just not visible?
My problem is that redis cache only has one type of cache for all pages, so I need to use CSS to stop ads loading (ie mobile vs desktop). At the moment I use php code, but that does not work with redis cache (well it works, but the cache contains both mobile and desktop versions).