> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create a Pop-Up for Landscape View Using HTML In-App

# Introduction

Orientation compatibility ensures a consistent user experience across various device displays. For an engaging user interaction, it’s important to design UI components that adapt seamlessly to portrait and landscape modes.

In this article, we will create an in-app HTML pop-up to introduce the new *Brand Kit* feature in a design app. This pop-up will automatically adjust to landscape and portrait orientations, offering a visually appealing experience regardless of how the user holds their device.

# Expected Result

Users will see a well-designed pop-up in both landscape and portrait views that provides relevant information or promotional content, increasing awareness and usage of the promoted feature.

<img src="https://mintcdn.com/moengage/cFTwc93vQdTanvKi/images/moengage_bede70.png?fit=max&auto=format&n=cFTwc93vQdTanvKi&q=85&s=40d8ce1968145cf475b1cd7f8186470b" alt="Screenshot 2024-08-05 at 2.43.56 AM.png" style={{ width:"54%" }} width="712" height="1184" data-path="images/moengage_bede70.png" />

<Tip>
  Integration of the MoEngage Android SDK or iOS SDK with your app. For more information, refer to the [Developer Guide](/developer-guide/introduction).
</Tip>

# Create an In-App Campaign

In this section, let us create an In-app HTML pop-up that automatically adjusts to landscape and portrait orientations.

## Step 1: Target users

1. Navigate to the sidebar on the left and click **Engage** > **Campaigns** and click **+ Create campaign**, or click **+ Create new**> **Campaign**.
2. Under **Inbound**, click **In-app**. <img src="https://mintcdn.com/moengage/2CGhjk8ZDWEC5ocb/images/moengage_f89375.png?fit=max&auto=format&n=2CGhjk8ZDWEC5ocb&q=85&s=8cd26f3e9e5a8ac841c26ec33d5902a5" alt="In-app.png" width="1528" height="1306" data-path="images/moengage_f89375.png" /> You are taken to the first step "Target users" of defining your campaign.
3. Enter the following details:
   * **Campaign name**: Enter a name for the campaign. For example, "HTML In-app campaign."
   * **Campaign tags**: Select the relevant campaign tags.
4. In the **Target Platforms** section, select **iOS**.
5. In the **Trigger Criteria** section, select **On app open**. <img src="https://mintcdn.com/moengage/N1a7P_mcSpm-5bMa/images/moengage_5ae947.png?fit=max&auto=format&n=N1a7P_mcSpm-5bMa&q=85&s=4a01891de92ffc128913a924fc8b4324" alt="image-20240121-050504.png" width="2730" height="898" data-path="images/moengage_5ae947.png" />
6. In the **Select trigger time** section, select **Immediately** to send the message.
7. In the **Target audience** section, select **Filter users by** to specifically target only those users who have not yet used the new feature and exclude users who have opted out of Push notifications on their devices or who have already adopted the new feature.
8. Click **Next** to move to the second step, "Content," where you can define the content that will go into your campaign.

## Step 2: Content

MoEngage In-app campaign offers a variety of templates for all your use cases. It also provides the option to start from scratch.

1. Select the template you want to show the user. You can select any HTML In-app message template to design the pop-up. For this use case, we will select the **Popup—Promotional** template. You can customize it on the **Template Settings** page.

<img src="https://mintcdn.com/moengage/MBpE2Km0jgeTJl4Q/images/moengage_0187bd.png?fit=max&auto=format&n=MBpE2Km0jgeTJl4Q&q=85&s=d03ef8e5d7ca9cbf98423048c0e614d5" alt="Screenshot 2024-08-05 at 2.20.35 AM.png" style={{ width:"50%" }} width="614" height="1042" data-path="images/moengage_0187bd.png" />

2. Design the pop-up message by performing the following steps:
   * **Update the title**: "Introducing Brand Kit!"
     * **Style**: Use a bold and attractive font to grab attention. <img src="https://mintcdn.com/moengage/M3SzEdkQVgGAjJCt/images/moengage_728def.png?fit=max&auto=format&n=M3SzEdkQVgGAjJCt&q=85&s=4fcebc155b54c8804518982c4be5fef0" alt="Screenshot 2024-08-05 at 2.28.45 AM.png" width="2600" height="1258" data-path="images/moengage_728def.png" />
   * **Include a Description**: Provide a brief overview of what the feature does and how it benefits the user.
     * **Text**: "Our new Brand Kit helps you store and manage your brand assets like logos, fonts, and color palettes all in one place. Try it now and streamline your design process!"
     * **Style**: Ensure the text is concise and easy to read. <img src="https://mintcdn.com/moengage/MBpE2Km0jgeTJl4Q/images/moengage_000fc5.png?fit=max&auto=format&n=MBpE2Km0jgeTJl4Q&q=85&s=6b13cd326e7632903fd74c518415cf0c" alt="Screenshot 2024-08-05 at 2.29.48 AM.png" width="2648" height="1344" data-path="images/moengage_000fc5.png" />
   * **Add Visual Elements**: Include relevant images, icons, or animations that visually explain the feature.
     * Example: Use an image of the app interface showing the Brand Kit with logos, fonts, and color palettes.
     * Upload the file and then use the relative path in the HTML code, as shown in the video below.
   * **Include a Call-to-Action (CTA) Button**: "Get started"
     * Link: Direct the button to the section of the app where the feature can be accessed or to a tutorial.
     * Style: Make the button stand out with a vibrant color and clear font.\\
       <iframe src="https://www.youtube.com/embed/kSWHmlAo0NQ" title="YouTube video player" frameborder="0" className="w-full aspect-video rounded-xl" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />
   * **View the template in both landscape and portrait mode**: Click **View portrait and landscape** to view the pop-up in landscape view. <img src="https://mintcdn.com/moengage/tNrQQROY8O0h4yWe/images/moengage_18c1c2.png?fit=max&auto=format&n=tNrQQROY8O0h4yWe&q=85&s=f3ac784bbd56cd0505fb67bc90d6235b" alt="Screenshot 2024-08-05 at 2.47.25 AM.png" width="2694" height="1468" data-path="images/moengage_18c1c2.png" />
3. Click **Next** to move to the third step, "Schedule and goals," where you can define your campaign's schedule and goals.

## Step 3: Schedule and goals

Here, you can select the campaign schedule, add the conversion goal, choose the campaign's priority, and define custom delivery controls.

1. In the **Send campaign** section, define when you want to start and end your In-app message with the frequency and limits. <img alt="image-20240121-054649.png" src="https://mintcdn.com/moengage/OQ0V9ibjQLpsyCSD/images/moengage_0db0ee.png?fit=max&auto=format&n=OQ0V9ibjQLpsyCSD&q=85&s=c34dab39a4ea5c87167c282ec6af2c7a" width="2742" height="996" data-path="images/moengage_0db0ee.png" />
2. In the **Conversion Goals** section, add conversion goals that you would like to track.
3. In the **Campaign priority** section, assign a priority to this campaign. Assigning a priority helps you decide which In-app message to show to a user when they are eligible for more than one message at a specific time. For example, selecting **Critical** ensures that the users will always see this even when there are other campaigns for which they are eligible.
4. In the **Delivery Controls** section, define the controls based on your requirements. For more information, refer to [Create In-app Campaign](/user-guide/campaigns-and-channels/in-app-message/create/create-in-app-campaign).  <img alt="image-20240121-054810.png" src="https://mintcdn.com/moengage/t9nft78wsoLTI2Nx/images/moengage_28c47b.png?fit=max&auto=format&n=t9nft78wsoLTI2Nx&q=85&s=864a569bd7aaa6141a7aa62195d93225" width="2744" height="636" data-path="images/moengage_28c47b.png" />
5. Click **Publish**.

# Conclusion

In this use case, we created an In-app campaign to ensure a consistent user experience across various device displays.

This automated campaign will help you enhance user experience by leveraging orientation compatibility and our exceptional UI components, which adapt seamlessly to portrait and landscape modes.

Now that we have published the campaign, we can track our CTR and conversions (if defined) to understand how well it is performing. For more information, refer to [In-App Campaign Analytics](/user-guide/campaigns-and-channels/in-app-message/analyze/analyze-in-app-campaigns).
