You can add a file called functions-shared.php in your main theme that is loaded from both and contains any shared functionality. Alternatively, you can add a file functions-mobile.php in your main theme and load only the plugins/files you want for mobile:

The bulk of our mobile handling code is available via the Jetpack Mobile module. To use it with a custom mobile theme, you can add your mobile theme in the VIP themes repo (wp-content/themes/vip/) and use a snippet like a following in a mu-plugin to toggle the loading of your custom theme:

Related Documentation

Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.