Detect mobile from hublSOLVE
10-04-2018 07:00 - edited 10-04-2018 07:01
Is there any possibility to detect mobile devices on the hubl (server) side? Like in WordPress, there' s function wp_is_mobile() which returns true or false. Or php library mobiledetect which does the same thing.
I am creating a custom module, a hero block and it should follow this logic:
If desktop -> show video as background
Else -> show image as background
Solved! Go to Solution.