Hi I want to show block which depends on browser in concrete4 8.5.1 CMS Once block will have GIF and other will have AV1 video. But as AV1 is not supported by all browser I will like to show gif and the one which supports will hide the GIF and show AV1. PHP version is 7.3
I have tried differnet css but did not work https://rafael.adm.br/css_browser_selector/
Try to detect with modernizr the browser feature needed to reproduce the video:
https://modernizr.com/download?setclasses
You can look in specific for video: https://modernizr.com/download?video-setclasses&q=video
Modernize give you true or false on each feature you check, for example you can check html5video, if true then add class .active to the video container if not add .active to the gif container.