> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-doc-2298-s2s-type-case-sensitive.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Editing OSM Templates in Mobile Web

> Customize On-site Messaging templates for mobile web in MoEngage. Ensure your messages display correctly across devices for better user engagement.

The On-site Message (OSM) Editor helps you create and customize messages for your mobile and desktop web campaigns. This ensures your On-site messages display correctly and perform optimally across various devices, leading to a better user experience and increased engagement. This guide is for digital marketers and product managers who want to deliver tailored web experiences to their audience.

To create an On-site message for mobile web, select **Mobile Web** as the target platform during the [campaign creation](/user-guide/campaigns-and-channels/on-site-message/create/create-osm-campaign) process.

<img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/ybOMwHGZ8vUIop3W/images/moengage_2c1723.png?fit=max&auto=format&n=ybOMwHGZ8vUIop3W&q=85&s=03e8c65bdecf3c727bb0da1ec64c6d9c" width="2692" height="1380" data-path="images/moengage_2c1723.png" />

Complete the remaining fields and select a template in the next step of the campaign creation process.

## Edit Templates in Mobile View

To edit a template in Mobile view:

1. On the editor, click the **Desktop** icon.

   <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/y8lY5d9Gmh9QL4HC/images/moengage_e70bcc.png?fit=max&auto=format&n=y8lY5d9Gmh9QL4HC&q=85&s=d4625cde561d006a46880c3207593775" width="2670" height="1294" data-path="images/moengage_e70bcc.png" />
2. A list of device views appears: **Desktop**, **Tablet**, and **Mobile**. You can switch between these views to see how the template will look on different devices.
3. To edit your template for mobile, click **Mobile** to open the Mobile view.
4. You can now begin styling your template for mobile devices.

   <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/tSxaMl4Ci025EX_c/images/moengage_bead18.png?fit=max&auto=format&n=tSxaMl4Ci025EX_c&q=85&s=8b465643cf53d0960cd6e0df5ef254d1" width="2700" height="1374" data-path="images/moengage_bead18.png" />

<Info>
  **Information**

  While elements cannot be added directly from the mobile view, you can configure elements to appear specifically on mobile by adding them in Desktop View and adjusting their visibility settings.
</Info>

## Add Elements to Mobile Web Templates

To add new elements to your Mobile web templates:

1. Switch to the **Desktop** view.
2. In the top-left corner of the editor, click the **+ icon** to add a new element.

   <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/snQIRyrpzacZ3rp-/images/moengage_cc775c.png?fit=max&auto=format&n=snQIRyrpzacZ3rp-&q=85&s=062cb49992529dc17790e344bd5d2646" width="2702" height="1374" data-path="images/moengage_cc775c.png" />
3. Click the newly added element to open its edit bar. On the edit bar, click the **Settings** icon, and then click **Styling**.

   <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/8OaIYgvqt-4jw66X/images/moengage_6b592c.png?fit=max&auto=format&n=8OaIYgvqt-4jw66X&q=85&s=52ae92185919088b61829146706615e7" width="2294" height="1220" data-path="images/moengage_6b592c.png" />
4. In the **Styling** menu, click **Advanced**, and then turn off the **Show on Desktop** toggle.

   <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/ooFz7s6WTP3bsS1R/images/moengage_a5a470.png?fit=max&auto=format&n=ooFz7s6WTP3bsS1R&q=85&s=e3ba0464ae96119b0bc770d4892d6285" width="1434" height="1344" data-path="images/moengage_a5a470.png" />
5. This action hides the element in Desktop view, but it remains visible in Mobile view.

   <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/mjatFZVT9OZ7HgFp/images/moengage_da7c0f.png?fit=max&auto=format&n=mjatFZVT9OZ7HgFp&q=85&s=7a690e4749500d0f69ef38241fa20cee" width="1182" height="1100" data-path="images/moengage_da7c0f.png" />

## Style Elements in Mobile View

1. In Mobile view, click the element you want to style. This opens the styling options.

   <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/225iUySxCWRqtEV6/images/moengage_dfe157.png?fit=max&auto=format&n=225iUySxCWRqtEV6&q=85&s=a4c1dcdf6e6f736e31279cd434a38926" width="2096" height="1358" data-path="images/moengage_dfe157.png" />
2. The edit bar provides these four quick customization options:
   * **Hide**: Hides the element in Mobile view.
   * **Text**: Opens text editing options, such as size, typography, and weight.

     <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/QWjygXFHC7skdyyV/images/moengage_4a24be.png?fit=max&auto=format&n=QWjygXFHC7skdyyV&q=85&s=570562c0618e8e48947bd525a25877c4" width="820" height="668" data-path="images/moengage_4a24be.png" />
   * **Align**: Aligns the element to the right, left, or center of the template.
   * **Settings**: Allows you to add spacing above or below the element or change its HTML tag.

     <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/RrlLMYNS4H9ufWIz/images/moengage_3c231f.png?fit=max&auto=format&n=RrlLMYNS4H9ufWIz&q=85&s=bb2f72a4df018096129a5700cae281f0" width="826" height="710" data-path="images/moengage_3c231f.png" />
3. The **Styling** and **Effects** tabs appear on the right side of the editor. Use Padding and Margin to ensure elements don't appear cramped on smaller mobile screens, improving readability.
   * **Styling**: Use the **Padding** and **Margin** options to modify the element's position on the template.

     <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/ci8Djcf_YLqDkdsJ/images/moengage_77e23e.png?fit=max&auto=format&n=ci8Djcf_YLqDkdsJ&q=85&s=508e350ca0e3ca137dc5273ed4bc68bc" width="600" height="1370" data-path="images/moengage_77e23e.png" />
   * **Effects**: Apply short animation effects to the element. You can also modify the duration and delay of these effects.

     <img src="https://mintcdn.com/moengage-doc-2298-s2s-type-case-sensitive/ROcg5p9XzizrIUp9/images/moengage_ba740e.png?fit=max&auto=format&n=ROcg5p9XzizrIUp9&q=85&s=7d1d983258deea348450706839754e76" width="598" height="1308" data-path="images/moengage_ba740e.png" />

# Next Steps

* [Analyze OSM campaigns](/user-guide/campaigns-and-channels/on-site-message/analyze/analyze-on-site-messaging-campaigns)
