Checking if the player/user is on mobile?

Hello! Does anyone know any way of checking if the user is on mobile? I know there’s showMobileControls() for GameLab, but it doesn’t actually return if the user is on mobile or not…