Back to Top

How to Setup Separate Theme for Mobile Devices Magento 2

Updated 2 September 2024

While working on Custom Theme in Magento 2 we sometimes require to develop a theme in Magento 2 which is separate for mobile devices.

Let’s Learn how we can set different themes for Mobile Devices

1. Login to your admin and navigate to Content -> Design -> Configuration.

content-configuration

2. Click on the “Edit” button of the first row(Global) or the store for which you would like to configure the mobile theme.

DesignConfiguration

3. Under the “Design Rule” tab, click “Add New User Agent Rule”.

Start your headless eCommerce
now.
Find out More
UserAgentRule


4. Add the below string or specify a particular device name and then select your desired theme.

/iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini/

We hope it will help you. Thank you!!

If you require technical support, feel free to email us at [email protected].

Additionally, explore a wide array of solutions to boost your store’s capabilities by visiting the Adobe Commerce modules section.

For expert advice or to create tailored features, hire Adobe Commerce Developers for your project.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home