I have a responsive site. Lots of content is hidden depending on screen size.
This slows down page speed. And on slow devices has a lot of content shifting whilst content is hidden/shown.
In drupal 7 I used browser cap, to detect whether the browser was mobile or desktop and was able to not show blocks/content without having to hide them via CSS.
Is there a way in Drupal 9 to only have content loaded for certain devices, rather than use breakpoints and css to hide content?
Thanks