Wouldn’t the standard way be to check the user agent? Here’s a database of user agents you can use to detect mobile browsers.
Wouldn’t the standard way be to check the user agent? Here’s a database of user agents you can use to detect mobile browsers.