E-Commerce Updated

How to Optimize Your Website for Mobile?

Jane Vyshnova

Jane Vyshnova

CEO

Author

How to Optimize Your Website for Mobile?

Time to read: 9 minutes

Content

  1. Before You Start: The Importance of Mobile
  2. How to Define if Your Website Is Mobile-Friendly or Not?
  3. 11 Best Ways of How to Optimize a Website for Mobile
  4. What's More?
Bookmark

To optimise a website for mobile, use a responsive design that shows the same content as your desktop site, make key pages fast enough to meet Google's Core Web Vitals thresholds, make every button easy to tap and every form easy to fill on a small screen, and avoid pop-ups that cover the page. Test with Lighthouse and on real phones. The audit table below lists each check, how to test it and when it passes.

Accessing websites on several devices was once a problem: most people used the internet on a desktop computer. Times have changed. Phones are now a common way to browse and shop on the go, so a site that works well on a phone can reach a much wider audience. In this article we cover the main ways to optimise your website for mobile.

Five checks on a mobile product page A phone showing a product page, with five labelled checks. 1, layout: viewport tag and a single-column responsive layout. 2, speed: good Core Web Vitals, meaning Largest Contentful Paint within 2.5 seconds, Interaction to Next Paint of 200 milliseconds or less and Cumulative Layout Shift of 0.1 or less. 3, content: the same content, headings and metadata as the desktop page. 4, touch and typing: tap targets of about 48 by 48 pixels and the right keyboard for each field. 5, interruptions: a small banner instead of a full-screen pop-up. Store ≡ product image Add to cart Sign up for offers ✕ 1. Layout Viewport tag; single-column responsive layout 2. Speed (Core Web Vitals, 75th percentile) LCP within 2.5 s; INP 200 ms or less; CLS 0.1 or less 3. Content Same content, headings and metadata as the desktop page 4. Touch and typing Tap targets about 48 x 48 px; the right keyboard and autofill for each field 5. Interruptions A small banner, not a full-screen pop-up
Five checks to run on every key page template: home, category, product, cart and checkout.

Before You Start: The Importance of Mobile

Your website has to work smoothly on mobile devices. If it does not yet, now is the time to fix it. Before we look at how, here is why mobile matters for a business:

How to Define if Your Website Is Mobile-Friendly or Not?

Start simply: imagine you are a potential customer and open your website on your phone. Is it loading quickly? Is it easy to find what you are looking for? Is the main action, such as adding a product to the cart, easy to take?

If the answer to any of these is no, the site needs mobile optimisation. Visitors on a phone expect answers immediately: what you offer and whether it is right for them. Their experience on the site shapes their impression of your business and the chance that they become customers.

A phone check shows obvious problems. For a full picture, run the audit below on each key page template. Google's own Mobile-Friendly Test and the Mobile Usability report in Search Console were retired on 1 December 2023; Google now points to Chrome Lighthouse, which can help identify page experience improvements, including mobile usability.

Mobile audit table

CheckHow to testPasses when
Responsive layoutOpen the page on a phone and in the browser's device mode; check the page source for a viewport tagThe page includes <meta name="viewport" content="width=device-width, initial-scale=1"> and content fits the screen without sideways scrolling or zooming
Same content as desktopCompare mobile and desktop versions of key pagesText, images with their alt text, headings, structured data, titles and meta descriptions are equivalent
Loading (LCP)Field data in Search Console's Core Web Vitals report or PageSpeed Insights; Lighthouse for lab checksLargest Contentful Paint within 2.5 seconds at the 75th percentile of mobile page loads
Responsiveness (INP)Field data as aboveInteraction to Next Paint of 200 milliseconds or less
Visual stability (CLS)Field data as above; watch the page load on a phoneCumulative Layout Shift of 0.1 or less; buttons do not move as the page loads
Tap targetsTap through menus, filters, cart and checkout on a phoneButtons and links are about 48 by 48 pixels or larger, with space between them
FormsFill in search, sign-up and checkout on a phoneEach field opens the right keyboard (email, phone, number) and supports autofill
InterruptionsVisit key pages as a new visitorNo pop-up covers the whole page; offers and app prompts use small banners
Main journeyAsk a few people to find and buy a product on their own phonesThey complete the purchase without help

The rest of this article explains how to fix what the audit finds.

11 Best Ways of How to Optimize a Website for Mobile

Before you start, understand what mobile optimisation involves and what it can do for your business. Look at how your own customers use your site: which devices and screen sizes they use and which pages they visit most on a phone. Your analytics tool shows this, and it tells you which templates to fix first.

1. Make simplicity your priority

The first step is deciding what content each page needs:

A page that is simple on a phone is usually easier to use on every other device too.

2. Make a plan for your website's layout

Phones have small screens and are often on slower or less stable connections, so keep each mobile page focused and its layout streamlined. A single-column layout, a clear menu and a visible search bar work for most stores. Put yourself in the user's shoes and keep the layout as simple as possible.

Technically, a responsive layout starts with the viewport meta tag. web.dev's responsive design guidance states that pages optimised for a variety of devices must include a meta viewport tag, and recommends width=device-width, initial-scale=1.

3. Focus on touch, making navigation responsive

On a touch screen, users navigate with their fingers. Make navigation work for fingers of different sizes, and do not force users to pinch and zoom to read or tap.

The most common problem is inaccurate tapping: buttons and links that are too small or too close together. web.dev recommends a minimum touch target size of around 48 device-independent pixels, which corresponds to about 9 mm; an icon can be smaller if padding brings its tap area up to 48 pixels.

4. Use compression tools in the design

Smaller files load faster, which matters most on a phone:

5. Make sure all the branding features on your standard site are also added to your mobile version

Users should recognise your brand on any device. Keep the logo, colour scheme, fonts and tone consistent between desktop and mobile, so customers who switch devices know they are in the same store.

6. Make sure you use white space

A common mistake is overcrowding a small screen. Limit the number of elements on each screen and use white space around them. Text, prices and important buttons, such as the checkout button in an online shop, stand out better when they have room around them.

7. Use an appropriate solution: web standards, not plug-ins

Mobile visitors use many different devices and browsers, most of them on Android or iOS. Build with standard HTML, CSS and JavaScript that current mobile browsers support, and avoid any content that depends on browser plug-ins. Test on both Android and iOS devices before launch.

8. Check: the overall quantity of text entry must be lowered

Typing on a small screen is slow and error-prone. Reduce typing wherever you can:

The checkout is where this matters most; our article on checkout page optimisation has more practical tips.

9. Try to stay away from pop-up windows

Pop-ups are harder to close on a phone and hide the content visitors came for. Google's Search Central guidance describes intrusive interstitials and dialogs as page elements that obstruct users' view of the content, and advises not to obscure the entire page with interstitials. Instead, it suggests banners that take up only a small fraction of the screen, for example for app install prompts or newsletter sign-ups. The guidance makes an exception for legally mandatory dialogs, but even then it recommends overlaying the content rather than redirecting the user to a separate page.

10. If you run a separate mobile site, set up redirects correctly

Google recommends responsive web design because it is the easiest design pattern to implement and maintain: one URL and one set of content for all devices. Some sites still run a separate mobile site on its own URLs (often called m-dot). If you do:

11. Give users the full content on mobile

Older mobile sites often showed a cut-down version with a "view full site" link. With mobile-first indexing, this is a risk: Google's documentation asks that your mobile site contains the same content as your desktop site, with the same headings, structured data, titles and meta descriptions, and the same alt text for images. You can still adapt the design for small screens, for example by moving content into accordions or tabs, as long as the content is equivalent.

What's More?

Many shoppers now discover and buy from online stores on their phones, so mobile optimisation is part of running an ecommerce business, not a one-off project. It works for both established businesses and start-ups, and it usually pays to fix the templates customers use most: product pages, cart and checkout.

Mobile optimisation often happens as part of a wider rebuild. On the Richter Gabelstapler project, a family-run B2B exporter of used forklifts in Germany, Dinarys migrated the store from Magento 1.7 to Magento 2.0 in four months and used a B2B-tailored, mobile-friendly predesigned theme. The case page reports 62% more mobile traffic and 25% faster loading after the project; these are the case page's own figures, not a promise for other stores.

If your store is slow or hard to use on a phone, start with the audit table above. If you want help, our ecommerce performance optimisation and UX audit services cover speed and usability checks, and if you are considering an app as well as a mobile site, our comparison of Flutter and PWA explains the options. You can contact us at Dinarys to discuss your website project.

Let professionals meet your challenge

Our certified specialists will find the most optimal solution for your business.

Please enter valid name
Please enter valid company
Please enter a valid phone
Please enter valid E-mail
Message is too short

    Your message has been successfully sent. We will be in touch shortly! Success icon