Detect in HTML5 if browser is opend in desktop or mobile

hello, please help!! how is possible to detect if html5 target canvas is opened in desktop or mobile?

Hey vbs.

Have a look at this thread:

thanks for help @obscure, I found this thread it was very helpful Loading different assets for desktop and mobile