Solutions keyboard_arrow_down keyboard_arrow_up
Our Solutions
Ontraport's solutions work together to give you everything you need to run your business in one centralized, easy-to-use platform.
Resources keyboard_arrow_down keyboard_arrow_up
Resources
Find free content on the latest marketing strategies, using Ontraport in your business, and finding the right software.
Visit the blog
University Pricing Chat
clear
Designing for mobile devices
Last updated on: January 31, 2024

Most web traffic today comes from mobile devices, so your page has to look good on a little screen.

There are a few strategies that are considered best practices for mobile design. When you use columns and rows to create your page’s layout, you create a responsive web design that automatically fits different-sized screens. But pages sometimes look imperfect once they fold up and shrink down. You can customize mobile-specific settings and even create mobile-only blocks in those cases.

In this article, you’ll learn how to ensure your pages look great on any device.

Table of contents

How Ontraport makes pages mobile responsive
Mobile style settings
Mobile font styles
Mobile block spacing
Mobile column spacing
Mobile element position settings
Mobile-only_blocks
Mobile width
Dynamic blocks and mobile view
Using rows for vertical alignment

How Ontraport makes pages mobile responsive

Ontraport’s drag-and-drop page builder automatically creates mobile responsive pages so your pages look great on any device.

And it’s all down to the layout of Ontraport Pages.

An Ontraport page contains a list of blocks consisting of columns and rows. Ontraport uses that layout to transform your design into a mobile-responsive version of your page.

When you click mobile view icon to switch to mobile view, you’ll notice that the columns on your desktop view shift.

When your desktop view has columns next to each other, the side-by-side columns will reorient themselves vertically. The columns on the left side will be at the top.

Here’s an example of a block in desktop view:

And here’s what the same block looks like in mobile view:

While your columns and rows create a mobile responsive layout, you can still optimize your page’s mobile version. If you want to change how your blocks look on mobile, you have two choices:

  1. Edit your mobile style settings
    • This option is best when you want to keep the same design and optimize the margin and padding of your elements or mobile fonts.
  2. Create a mobile-only block
    • This option is best if you want to change your design. You might create a mobile-only block if you want to remove text and add an image to your mobile block.


Mobile style settings

Back to top

You can customize your mobile font style, block spacing, column spacing, and element positions. This lets you tweak the layout created with columns and rows to perfect your mobile design.

Mobile font styles

Back to top

Hover over the device preview icon, device preview button then click mobile view icon to go to your mobile view.

Click on the mobile font style dropdown to edit the style of your fonts when your page is viewed on mobile.

You can customize:

  • Font family
  • Font size
  • Line height
  • Font weight

This makes it possible to have completely different fonts on mobile or simply optimize the size, height and weight of your fonts for mobile.

Some things to consider:

  1. Font legibility. Choose fonts that are easy to read on smaller screens. Overly ornate or stylized fonts may become illegible in smaller sizes.
  2. Font size. Generally, your text will read better on smaller devices using smaller font sizes. On desktop standard font sizes for paragraphs range from 16 to 18px, while on mobile that’s 14-16px.
  3. Font family. Some fonts are more suitable for mobile pages because they are easier to read across various screen sizes. Web designers often prefer sans-serif fonts because of their clean and straightforward appearance. Serif fonts still have their place, mainly for headings or larger text. Google fonts are also a great option because they are “web-safe,” meaning the font displays consistently across all devices. Here are some specific font suggestions:
    • Roboto
    • Nunito
    • Montserrat
    • Lato

Click here to learn more about editing your font styles.

Mobile block spacing

Back to top

When you set your device preview to desktop and mobile blocks (desktop preview button), you can customize the spacing of the mobile version of your blocks.

  1. Hover over settings icon and click Edit blockSpacing.
  2. At the top of the left sidebar, click Mobile.
  3. Customize your mobile spacing.

Mobile column spacing

Back to top

Just like mobile block spacing, you can customize the spacing for your columns in mobile view.

  1. Hover over settings icon and click Edit block.
  2. Then hover over the column you want to edit and click settings iconSpacing.
  3. At the top of the left sidebar, click Mobile.
  4. Customize your mobile spacing.

Mobile element position settings

Back to top

Mobile element position settings let you customize page elements’ position when viewed on a mobile device. These let you customize your element’s padding, margins, alignment, and element width, all of which work together to set the position and size of each element in your mobile view.

  1. Click the mobile view icon to get to the mobile view.
  2. Hover over an element and click settings icon.
  3. Then click on the position tab in the left menu.
  4. Customize the mobile position of your element.


Mobile-only blocks

Back to top

Some desktop block designs are too busy or challenging to use on mobile devices, and fixing spacing, and sizes won’t get you where you want to go.

You solve that problem by creating a separate block only shown on mobile devices.

  1. From the add devices view, hover over settings icon on the offending block and click Edit block.
  2. Click Display settings.
  3. Choose “Desktop Only” from the “Device display” dropdown.
  4. Copy your block.
  5. Hover over settings icon on your new block and click Edit block.
  6. Click Display settings.
  7. Choose “Mobile Only” from the “Device display” dropdown.
  8. Optimize your mobile-only block for mobile devices using the settings above.


Mobile width

Back to top

The mobile width setting lets you choose the screen size that will trigger your page to display using the mobile styling. This is also often called the “mobile breakpoint.”

The default setting of 600 px fits most users’ needs. You might consider changing this setting if:

  • You want to include tables in your mobile view.
    • Update the mobile width to around 800 px.
  • You want only to include cell phones in your mobile view.
    • Update the mobile width to around 400 px.


Dynamic blocks and mobile view

Back to top

There are two types of layouts that you can use for dynamic blocks:

  1. List
  2. Grid

When your dynamic block uses the list layout, your columns and rows collapse like a regular block. Side-by-side columns will reorient vertically, with the left-side columns on top.



When you use the grid mode on your dynamic block, any side-by-side columns in your card will reorient themselves vertically.




Using rows for vertical alignment

Back to top

If you create a grid to display information, you might add rows to display the label for each section. This layout is fantastic for desktop blocks.

Here’s an example of a block that uses rows to separate the label, content, and button elements from each other:

However, it is not ideal for mobile blocks because the way that rows and columns collapse in mobile view will cause all your labels to appear above each other instead of above the section the label belongs to.

Here’s an example of the mobile version of the block above:

Notice that the page’s mobile version doesn’t display the content in the correct order. The labels appear at the top, then both sets of content and both buttons are at the bottom of the block.

If you want to use rows to add labels to the desktop version of your page, you can create a separate mobile-only block.

Here’s an example of the same block using a mobile-friendly layout:

On the mobile-only block, place the label and the content into the same row, and use element position settings to customize your spacing.

Here’s an example of the mobile version of the block above. Notice that the mobile-friendly layout ensures that your content appears in the correct order:

Related university lessons
Overview: How pages work
This lesson walks you through constructing pages from top to bottom.
Personalizing with merge fields
Using merge fields, you can easily include a contact’s name (or more!) on the page for a personalized experience. Learn how to do it here.
Designing for mobile devices
This lesson digs into mobile-specific settings so your pages look great on any size screen.
arrow_drop_down_circle
Divider Text
Related support articles
arrow_forward
Display your Ontraport Page on your Wordpress site
arrow_forward
Page blocks
arrow_forward
Create and use PURLs

Turn your business on with Ontraport.

arrow_drop_down_circle
Divider Text
This website was designed and built with Ontraport.
About Ontraport
Partners & Integrations
Resources
Getting Started
[bot_catcher]