Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Disable Specific WordPress Plugins for Mobile Users

Many website owners want their WordPress sites to work well on mobile phones. As WordPress performance experts, we are often asked about making sites faster on smartphones and tablets.

One way to speed up your mobile site is by turning off some plugins when people visit from mobile devices. Plugins can make your site slower, especially on phones with slower internet connections.

In this article, we will show you how to easily disable specific WordPress plugins on mobile.

How to Disable Specific WordPress Plugins for Mobile Users

Why Disable Specific WordPress Plugins for Mobile Users

More than 50% of your visitors will access your WordPress website using a mobile phone. Almost 20% will be using a tablet.

It’s essential to have a site that loads quickly on mobile. However, plugins may be slowing down the mobile version of your site.

When someone visits your website, WordPress will load all active plugins along with any required scripts and stylesheets. It does not load any inactive plugins.

To learn more, you can see our infographic on how WordPress actually works for a behind-the-scenes look at how plugins are loaded.

All good WordPress plugins should load only when needed. However, sometimes, it is difficult for plugin authors to guess whether you will need the plugin or not. In such situations, they opt to load the required files just in case.

Users who are trying to get a perfect speed and performance score often want to disable specific plugins for mobile. That’s where this article can help.

Let’s take a look at how to easily disable individual WordPress plugins for the mobile version of your website.

Setting Up the WordPress Plugin Organizer Plugin

The first thing you need to do is install and activate the Plugin Organizer plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Important: Plugin Organizer is very powerful. Disabling plugins can cause unexpected conflicts and behavior and may even make your site inaccessible. We recommend that you create a complete WordPress backup before disabling any plugins.

Upon activation, you need to visit the Plugin Organizer » Settings page to configure the plugin.

Apart from the default options, you just need to turn on the following options:

  • Selective plugin loading
  • Selective mobile plugin loading
Turn on These Options

Don’t forget to click the ‘Save Settings’ button at the bottom of the page to store your changes.

Creating a Must-Use Plugin for Plugin Organizer

Plugin Organizer needs a must-use (MU) plugin to work properly. It will automatically try to create one for you, but if it fails, then you will have to create it on your own.

Checking Whether the Must-Use Plugin Was Created Automatically

Let’s start by checking if the plugin was able to create the MU plugin automatically.

You can do this by going to the Plugins » Installed Plugins page. You will see a new link labeled ‘Must-Use’, and clicking on it will show you the installed MU plugins on your site.

Must-Use Plugin Installed

If you don’t see the ‘Plugin Organizer MU’ plugin or ‘Must-Use’ link, then this means that the plugin organizer failed to create the file, and you will need to do it yourself manually.

Creating the Must-Use Plugin if Necessary

First, you need to connect to your website using an FTP client or the File Manager app in cPanel. Then, you need to go to the /wp-content/plugins/plugin-organizer/lib/ folder.

Now, you should download the file called PluginOrganizerMU.class.php to your computer.

Copy MU Plugin

Next, you need to go to the /wp-content/mu-plugins/ folder. If you don’t have a mu-plugins folder in your /wp-content/ folder, then you need to create one.

Now, you should upload the PluginOrganizerMU.class.php file from your computer.

Upload MU Plugin

The Plugin Organizer can now use this file to properly manage your plugins on mobile as well as desktop.

Disable Specific WordPress Plugins in the Mobile Version

Plugin Organizer makes it very easy to disable WordPress plugins on mobile. Simply head over to the Plugin Organizer » Global Plugins page.

You will see a list of color-coded plugins on the screen. Plugins highlighted in green are enabled and active, while plugins highlighted in gray are enabled and inactive. When you deactivate plugins, they will be highlighted in red.

Global Plugins

Above the list, you will see a drop-down menu labeled ‘Platform’. You need to select the ‘Mobile’ option. This will allow you to disable plugins on mobile devices.

Simply click the plugins you want to disable on mobile so that they turn red. If you make a mistake, then simply click the plugin multiple times until it is the right color.

Disable Plugins in Mobile Version

When you finish, don’t forget to click the ‘Save’ button to store your changes. The plugin organizer will now disable these plugins on your mobile site.

Plugin Organizer also makes it easy to disable individual WordPress plugins for specific posts, pages, user roles, and other parameters. To learn how, you can see our guide on how to use Plugin Organizer to speed up WordPress.

Expert Guides on Optimizing WordPress for Mobile

We hope this guide helped you learn how to easily disable specific WordPress plugins for mobile users. You may also want to see some other guides related to optimizing WordPress for mobile:

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

3 CommentsLeave a Reply

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Dennis Muthomi

    This is exactly the solution I’ve been implementing across client sites with excellent results.
    After using Plugin Organizer to disable heavy form builders and certain social sharing plugins on mobile, I’ve seen load times improve by up to 40% on several sites.
    One practical tip I would LOVE to add is before disabling any plugins for mobile, create a spreadsheet to track mobile vs desktop speed tests for each plugin you plan to disable. This helps identify which plugins actually impact mobile performance the most and provides concrete data for client reporting.

  3. Jiří Vaněk

    This is a great tutorial. I have several plugins that display e.g. social icons on the desktop version and so on. They are not used at all on the mobile version of the site and I turn them off with CSS – so they still run in the background, they are just not visible. This will be a much more elegant solution and the website will be a bit faster. Thanks a lot for the detailed instructions.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.