The way we currently detect whether it is a hybrid application or not is use the following javascript to check whether cordova has been loaded correctly.
if(typeof cordova != 'undefined'){
So if cordova is loaded then the following if statement will be executed.
So you could adjust the current mobile widget that was suggested and add this piece of code to detect if cordova is defined.
I hope this helps?
Regards Simon
Not tested, but this app might be what you are looking for: https://appstore.home.mendix.com/link/app/437//MobileBrowserDetection
Regards,
Ronald