Title: Plugin code not working on mobile
Last modified: December 29, 2023

---

# Plugin code not working on mobile

 *  Resolved [milaconsulting](https://wordpress.org/support/users/milaconsulting/)
 * (@milaconsulting)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/)
 * I’ve added the following plugin code on the webpage provided, which works fine
   in desktop mode, but **NOT** on mobile nor tablet… **what can I do to make this
   work?** (the code is also present on both mobile & tablet)
 *     ```wp-block-code
       <center><strong>PLEASE PROVIDE YOUR DETAILS TO REGISTER  </strong></center>
       <div id="ribbon-lead-form"></div>
       <script
           async
           type="module"
           host_id="34056"
           fields="firstName,lastName,email,phoneNumber,City,InterestsInfoS"
           token="xxxxx"
           country_code="nz"
           source_id="xxxx"
           data-field-def='{"firstName":{"type":"text","label":"First name","required":true},"lastName":{"type":"text","label":"Last name","required":true},"email":{"type":"email","label":"Email","required":true},"phoneNumber":{"type":"phone-number","label":"Phone number","required":true},"City":{"type":"text","label":"City","required":true},"InterestsInfoS":{"type":"text","label":"What are you most interested in to find out more about?","required":true}}'
           data-on-success-msg="Thank you for your registration – you will now receive an email with the Zoom details! "
           src="https://momence.com/plugin/lead-form/lead-form.js"
       ></script>
   
       <style>
       :root {
           --momenceColorBackground: #FBFBFB;
           --momenceColorPrimary: 245, 168, 0;
           --momenceColorBlack: 3, 1, 13;
       }
       </style>
       ```
   
    -  This topic was modified 2 years, 6 months ago by [milaconsulting](https://wordpress.org/support/users/milaconsulting/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-code-not-working-on-mobile%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/#post-17211805)
 * It doesn’t work for me on desktop either, I don’t see a form there – I think 
   a form should be visible, right?
 * But I see a lot of JavaScript errors when I call up your page. These could prevent
   this code from being executed. I think they are caused by an integrated Facebook-
   based chat. Unfortunately, I can’t see where this is coming from.
 * You have activated WP Rocket. Deactivate this optimisation plugin to rule it 
   out as the cause of all this. If it works without WP Rocket, contact their support
   to clarify the problem.
 *  Thread Starter [milaconsulting](https://wordpress.org/support/users/milaconsulting/)
 * (@milaconsulting)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/#post-17212419)
 * Thanks for your quick reply… It works for me on Safari desktop, but having it
   now tested on Chrome and Edge; they both do not work… and obviously it doesn’t
   work on mobile at all….
 * I’ve deactivated the Facebook Messenger plugin, and about to deactivate Rocket…
 *  Thread Starter [milaconsulting](https://wordpress.org/support/users/milaconsulting/)
 * (@milaconsulting)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/#post-17212540)
 * .. and what is really strange.. is that it works on the following webpage on 
   desktop Edge, Chrome, Safari, **as well as mobile**: [https://polestarpilates.co.nz/polestar-pilates-tell-us-about-yourself-survey/](https://polestarpilates.co.nz/polestar-pilates-tell-us-about-yourself-survey/)
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/#post-17212971)
 * I don’t see any JavaScript errors on this page, so I guess it works there. As
   I said, the other page has JavaScript errors that could be causing the problem.
 *  Thread Starter [milaconsulting](https://wordpress.org/support/users/milaconsulting/)
 * (@milaconsulting)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/#post-17213522)
 * Thanks again for your reply – and you are so right! It’s all sorted now: Rocket
   Cache was minifying that script and that was causing the issue. So it’s excluded
   now and all seems fine. 🤩
 *  [Cara](https://wordpress.org/support/users/dcka/)
 * (@dcka)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/#post-17282054)
 * Glad that’s been sorted, [@milaconsulting](https://wordpress.org/support/users/milaconsulting/)!
   Moving forward though, and to avoid confusion for other folks, please be aware
   that this particular forum is for the WordPress mobile app ([iOS](https://apps.apple.com/us/app/wordpress-website-builder/id335703880),
   [Android](https://play.google.com/store/apps/details?id=org.wordpress.android&hl=en&gl=US)).
   You can check out the forum guidelines [here](https://wordpress.org/support/topic/guidelines-for-posting/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin code not working on mobile’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Cara](https://wordpress.org/support/users/dcka/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-code-not-working-on-mobile/#post-17282054)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
