Skip to main content

Create a non-fullscreen mobile popup

Turn a fullscreen mobile popup into a centered box with a dimmed overlay.

Written by Rob D

New popups often fill the whole screen. On mobile, a smaller box centered over a dimmed page can feel less intrusive. You can change the layout in the popup editor.

The idea is to have two containers:

  • An outer container that fills the screen and acts as the dimmed overlay.

  • An inner container that's smaller and acts as the popup box.

šŸ’” Note: Mobile and desktop use separate templates, so these steps only change mobile. To change desktop, see Create a non-fullscreen desktop popup. If several steps share the same template, the change applies to all of them.

Make the popup non-fullscreen

  1. Open the popup in the editor and select Mobile at the top of the left sidebar.

    [Screenshot: Mobile switch at the top of the left sidebar, from the Notion draft]

  2. In the element tree, find the template's outer container (the Root element). Click its ⋯ menu and select Copy.

  3. Click the ⋯ menu again and select Paste as child. You now have a copy of the container inside the original.

    [Screenshot: Paste as child in the menu, from the Notion draft]

  4. Delete the elements directly inside the outer container, except the new inner container.

    [Screenshot needed: cleaned-up element tree]

  5. Select the outer container. Under Layout, set Direction to Vertical and set both alignments to Center.

  6. Select the inner container. Under Position, choose Relative.

  7. With the inner container still selected, under Size, set Width and Height to 95%, or to the size you want.

  8. Select the outer container again. Under Background, set Color to black, then set the opacity box next to the color to 50%.

  9. Click Preview to check the result on your phone, then Save.

šŸ’” Note: Use the opacity box next to the background color, not the Opacity style section. The Opacity style fades the whole container, including the popup box inside it.

šŸ’” Tip: For a softer look, select the inner container and set Rounded corners, for example to 8px or 12px.

Stop the page scrolling behind the popup

Select the outer container (the Root element). With Modal on, turn on Disable scrolling so the page underneath doesn't scroll while the popup is open. This is recommended on mobile.

Let visitors use the page, or create a flyout

These work the same on mobile and desktop. See Create a non-fullscreen desktop popup for:

  • Letting visitors use the page while the popup is open. Turn off Modal and make sure the outer container isn't sized to the full screen.

  • Creating a flyout that sits at the edge of the screen.

šŸ’” Tip: Lia, Alia's built-in AI assistant, can resize your popup for you. Ask it, for example, to "make the mobile popup a centered box at 95% width with a dark overlay." See Getting started with Lia.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?