# Wix Editor: HTML Code on Mobile

Source: https://support.wix.com/en/article/wix-editor-html-code-on-mobile (updated 2025-07-02)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Add code to display external widgets and embeds on your site, such as weather apps, stocks, or calendars.

You can add HTML code to your site in the mobile editor, or from [the desktop editor](https://support.wix.com/en/article/wix-editor-embedding-a-site-or-a-widget).

---

## Adding mobile friendly code to your mobile site

You can add HTML code to your mobile site from the add panel. This is a great way to draw attention to mobile friendly widgets and embeds on your site.

Elements added from the mobile editor are mobile-only, meaning they're not displayed on the desktop version of your site.

### To add mobile-only code:

1. Click **Add** ![](https://lh3.googleusercontent.com/IDFnmcEgyHpqULCFdMDGv1G-XRtRZotQXlqRSX_G5198Yq79ZSWYaB4qX6MgAq0OEJdJghAEN2yQ5j_gMl0IdgVGWF-SuoFtOzNhZp7He89u21LHmgDgLuef3tCDvvsf595xfCQVCYwjBcsVyA)on the left side your [mobile editor](https://support.wix.com/en/article/wix-editor-getting-started-with-the-mobile-editor).
2. Click **Embed Code**.
3. Select **Embed a site** / **Embed HTML** to add an iFrame to your page.
4. Click **Enter Code** / **Enter Website Address**.
5. Type or paste your HTML code or URL into the field.
6. Click **Apply**.

![Site embed settings panel in the mobile Editor.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/651c25b0-2d60-43c8-addf-1df2fd575568/2022/05/19/3c9ec6bd-9288-4168-8bea-0288c4d541c2/7024ad08-36f1-4b8d-a02c-e2d1d0dd2a52.png)

---

## Troubleshooting HTML code element issues on mobile

You may come across issues when displaying HTML code that you added from the desktop editor on your mobile site.

Click an option below to learn more.

**The HTML element is cut off and/or showing scroll bars**

The HTML element displays your code within an iFrame, and if the content is larger than the iFrame, it will get cut off and will show scroll bars. If this is the case, you can try resizing the frame to show all of the content.

**The third-party code is not mobile friendly**

* This could result in the content being displayed at the same size as the desktop version, which results in the code not fitting on your mobile site.
* This could also result in the content not responding or functioning properly.

We recommend hiding the desktop code, and adding a mobile friendly alternative to your mobile site to avoid these issues.

> **Note:** You cannot edit the code inside a desktop HTML element in the mobile editor.

> **Important:** Wix does not provide support for technical difficulties associated with third-party code snippets. If you are experiencing an issue with your code snippet, please contact the provider directly.
