Skip to main content

Hi Team!

Is there a method I can use in javascript to determine if a page is Mobile or Desktop?

You can check whether “skuid.mobile” is defined — if it is, you’re in Mobile, otherwise in Desktop, e.g.

var isMobile = !!skuid.mobile;
if (isMobile) {

}


Nice. Thanks!