I was wondering if it’s possible to include css or js based on the size of the screen. For example on desktop I’d like to display something which requires js, however on mobile I would like to hide that. In the latest cookbook recipe there was an option to include css/js/code based on the page. Is it possible to expand that and also add screen size?
This is the code I’m referring to.
<?php if ($page->intendedTemplate()->name() === 'album'): ?> <?= css('assets/js/Glider.js-master/glider.css') ?> <?php endif ?>