Or play with Mobile device widget to see if you get de right info to make decission.
And you can also do based on CSS. As you index file for Hyrbid apps can have different CSS files.
Is the same widget used in this collection, btw @Andries? https://appstore.home.mendix.com/link/app/112063/