Skip to content
Mobile detect change theme and redirect based on device type. Magento 2 module.
Branch: master
Clone or download
Latest commit 1da5a09 Jan 9, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
View/Plugin Added headers and server by setters Apr 3, 2017
etc Changed version, changed test class, added mutiple php tests Jan 9, 2019 Added some Markdown Apr 20, 2017
registration.php Soved small issues and added a travis file. Mar 4, 2017

Magento 2 Mobile Detect Theme Change

Build Status

Magento 2 Mobile detect system can be used to load different themes base on the client device (desktop, tablet, mobile). It uses the library

How to use the module

The main configuration can be done under the Content > Design > Configuration. There (Design Rule > User Agent Rules) you can add user agent expressions.

  • add eadesign_is_mobile to load a theme for mobile
  • add eadesign_is_tablet to load a theme for tablet
  • add eadesign_is_desktop to load a theme for desktop

Under system configurations you need to enable the extension. Also there you will find 3 fields for redirects. If you add a url to the mobile field for example the user will be redirected to the url in there. This can be useful if you want to use a different website/store view url for the mobile theme.


You can install the module via composer or manually by adding it to the app/code directory. The module is available on

Via composer

composer config repositories.magento2-mobiledetect git;
composer require eadesignro/module-mobiledetect;
php bin/magento setup:upgrade;


You need to remove the module.

composer remove eadesignro/module-mobiledetect;
You can’t perform that action at this time.