Detect Mobile


Gareth Davies

3rd Party (Free)

28 downloads (last 90 days)

MIT License

EE Version Support

  • ExpressionEngine 2
  • ExpressionEngine 5


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



Simple PHP plugin for EE2/EE5 that detects a mobile browser using the PHP Detect Mobile class ( Download from Github. For support please use Github issues.

Basic Usage

Check if any mobile device

Conditional check for a mobile device

{if '{exp:detect_mobile:ismobile}'} I am a mobile device {if:else} I am not a mobile device {/if}

Check if not a mobile device
Check if tablet
Check if phone

Redirect any mobile device including tablets
{exp:detect_mobile:redirect location=“”}

Redirect all non-tablet mobile devices
{exp:detect_mobile:redirect location=“” tablet=“no”}

Redirect just tablets and not mobiles
{exp:detect_mobile location=“” mobile=“no”}

Seperate locations for tablets and mobiles
{exp:detect_mobile tablet_location=“” location=“”}

Check for device type

Example usage

{if '{exp:detect_mobile:type}' == "tablet"} I am a tablet {if:elseif '{exp:detect_mobile:type}' == "phone"} I am a mobile phone {if:else} I am not a mobile device {/if}

Detect Mobile Links

This entry was created January 7, 2013, 10:08 am.
This entry was last updated January 16, 2019, 2:31 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at to initiate your return. If you have questions, email

3 Reviews:

Derek Balmer 10.03.14

Derek Balmer
Rating - {addon_rating_average}

Excellent device detection for phones and tablets. Works like a charm without any fuss.

Big Bad Wolf 07.29.14

Big Bad Wolf
Rating - {addon_rating_average}

The best mobile detection plugin for EE. Accurate device recognition for Smartphones and Tablets !

kubik101 09.12.13

Rating - {addon_rating_average}

Perfectly simple, no settings, just detects. Exactly what I was after. Also works on MSM with EE2.5.5. Thanks Gareth..!!