# Check if mobile

**URL:** https://phaser.discourse.group/t/check-if-mobile/305
**Category:** Phaser 3
**Created:** [December 13, 2018, 11:35am UTC](https://phaser.discourse.group/t/check-if-mobile/305 "2018-12-13T11:35:39Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jamespierce](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jamespierce/32/66_2.png) [@jamespierce](https://phaser.discourse.group/u/jamespierce)
#### Post date: [December 13, 2018, 1:45pm UTC](https://phaser.discourse.group/t/check-if-mobile/305/3 "2018-12-13T13:45:14Z")

</div>

> [@Fredrik](#):
>
> Is there any way in Phaser 3 to check if the current device is desktop or mobile (or similar)?

Hey I’ve written a blog post explaining it in detail: [How to Check if a Player is on Mobile or Desktop](https://browsergameshub.com/check-player-is-on-mobile-or-desktop/)

Checking for the device / user agent can be unreliable at times. Actually, even Phaser has to guess what the player’s device is because currently there isn’t a conform way to check that across all browsers & OS & devices. That’s why usually it’s much more reliable to **check for touch input** instead of trying to guess the user’s device.

Anyways, I’ve described both methods in my [blog post](https://browsergameshub.com/check-player-is-on-mobile-or-desktop/) if you’re interested.

---

_[View the full topic](https://phaser.discourse.group/t/check-if-mobile/305)._
