Web HTML5 Build - Detect If Running On Mobile Internet Browser?

Hi,

How can we detect if Web HTML5 build is running on a mobile Internet browser?
Would guess that some JavaScript is necessary?
Any help would be appreciated, thank you!

Have not tried this, but would 1st answer work?:

There is condition for checking if device have touch screen
But also i think one for checking if its mobile
Touch screen makes more sense to me anyway

OK,

Checking for touchscreen wouldn’t be ideal - there are laptops with touchscreen.

Using check for “Mobile” does indeed work on Android and Apple iOS.
Oddly it say’s that on mobile browser the game is not Web based?

Anyway,this answers my initial question…

If you are trying to make detect controls automatically
Then why not just detect if there is touch screen
BUT even if you display touch controls you leave option to hide them?