# Mobile-Friendly Test - Bulk Responsive & Viewport Checker (`goldstandardweb/mobile-friendly-test`) Actor

Test any list of URLs on a real phone screen: viewport tag, sideways scrolling, small text, tap targets and old plugins. Pass/fail, 0-100 score, what to fix, mobile screenshot.

- **URL**: https://apify.com/goldstandardweb/mobile-friendly-test.md
- **Developed by:** [Josh Zoerner](https://apify.com/goldstandardweb) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Mobile-Friendly Test - Bulk Responsive & Viewport Checker

**Paste a list of URLs and see, for every page, whether it works on a phone.** You get a pass/fail verdict, a 0-100 score, the exact problems with how to fix them, and a screenshot of the phone screen. Each page is opened in a real Chrome browser at a real phone size, not guessed from the HTML.

Google retired its Mobile-Friendly Test tool and API in December 2023. This Actor runs similar checks: viewport tag, content wider than the screen, text too small to read, tap targets too small or too close, and old plugins. It runs them on as many pages as you like, on a schedule. You can open the results in a spreadsheet.

### Who it's for

- **Web design and SEO agencies** finding prospects whose sites fail on phones. You get proof (score, issue list and phone screenshot) to put in a cold email or audit.
- **Site owners and marketers** checking every landing page, template or new release on phone sizes before customers notice.
- **Developers and QA teams** adding a mobile layout check to a pipeline through the API, with clear pass/fail and fixed JSON fields.
- **Lead-list builders** enriching a list of company websites with "mobile-friendly: yes/no".

### What you get

One row per web address. Real rows from a test run on November 16, 2026 (phone screen 390 x 844):

| URL | Mobile-friendly | Score | What to fix (shortened) | Viewport tag | Small text | Small tap targets |
|---|---|---|---|---|---|---|
| https://www.python.org/ | yes | 92 | Warning: 76 of 134 links and buttons are smaller than 48 x 48 px with another one close by | `width=device-width, initial-scale=1.0` | 2.5% | 0 |
| https://en.wikipedia.org/wiki/Web_scraping | yes | 84 | Warning: 14 of 66 links and buttons are smaller than 24 x 24 px without enough space around them; Warning: 29 are close together | `width=device-width, initial-scale=1.0, ...` | 0% | 14 |
| https://info.cern.ch/hypertext/WWW/TheProject.html | **no** | 17 | FAIL: No viewport meta tag, so phones show a shrunken desktop page; FAIL: 98.5% of the text is smaller than 12 px on a phone screen; FAIL: 9 of 9 links and buttons are smaller than 24 x 24 px | none | 98.5% | 9 |

Every row also has:

- the phone screenshot link and the page title
- the final address after redirects
- the measured page width and sideways overflow in pixels
- the elements that stick out
- examples of the small text and small tap targets, with their sizes
- a `charged` flag

#### The checks

| Code | Fails when | Warning when |
|---|---|---|
| `VIEWPORT_NOT_SET` | the page has no `<meta name="viewport">` tag | - |
| `VIEWPORT_NOT_DEVICE_WIDTH` | the tag sets neither `width=device-width` nor `initial-scale`, or fixes a width wider than the phone | - |
| `CONTENT_WIDER_THAN_SCREEN` | content is more than 5 px wider than the page area (sideways scrolling), or the phone has to zoom the page out | - |
| `TEXT_TOO_SMALL` | 40% or more of the visible text is under 12 px on the phone screen | 15% or more |
| `TAP_TARGETS_TOO_SMALL` | 5 or more and 25% or more of the links, buttons and fields are under 24 x 24 px with something else within reach (WCAG 2.2, 2.5.8) | any |
| `TAP_TARGETS_TOO_CLOSE` | - | targets under 48 x 48 px with another target close by |
| `ZOOM_DISABLED` | - | `user-scalable=no` or `maximum-scale` under 2 |
| `INCOMPATIBLE_PLUGINS` | the page has Flash, Java or similar plugin elements | - |

A page is **mobile-friendly** when no check fails (warnings are allowed). The **score** is 100 minus 25 per failed check and 8 per warning, never below 0.

#### Statuses

| Status | Charged | Meaning |
|---|---|---|
| `ok` | yes | The page was tested |
| `http_error` | no | The page answered 4xx or 5xx (for example 404, or 403 from a site that refuses automated visits) |
| `empty_page` | no | No text and no links on the phone screen (blank page, login wall, image-only page) |
| `robots_blocked` | no | The site's robots.txt does not allow automated visits to this page |
| `unreachable`, `timeout`, `error` | no | The site could not be reached or did not load in time, even after one retry |
| `refused` | no | The address points to a private or internal network |
| `invalid_url` | no | The line is not a usable web address |

### How to use it

1. Paste your web addresses into **Web addresses**, one per line (full links or plain domains such as `example.com`).
2. Pick the screen (phone 390 px is the default; small phone, large phone and tablet are there too) and click **Start**.
3. Open the **Mobile-friendly test** table, sort by score, and export to CSV, Excel or JSON, or click a screenshot link.

To try it, click **Start** on the prefilled form: 3 pages, results in under a minute. Pages that fail to load are free.

### Pricing

Pay per result: **1,000 tested pages = $5** ($0.005 per page), plus Apify's standard actor-start fee per run. Only tested pages (`ok`) are charged. Failed, blocked, empty, robots.txt-protected and invalid pages are free. Set **Max charged results** or a maximum cost per run in Apify to cap what a run can spend. Pages not tested because of a limit are not charged. They are listed in the run's key-value store as `UNPROCESSED`.

### Scheduling & integrations

- **Schedules:** test your landing pages every week and get the results by email, Slack or webhook.
- **API:** start runs and read results from any language with the Apify API or the JavaScript and Python clients.
- **Make, Zapier, n8n:** use the Apify app to send a list of URLs in and push failing pages to a CRM or a task list.
- **Google Sheets:** export the table, or use the Apify integration to append results to a sheet.
- **MCP and agents:** call it as a tool through Apify's MCP server with a list of URLs. Every row has fixed fields and a plain-English `issueSummary`.

### Tested to the Gold Standard

Gold Standard Web built this Actor and tests it with [Gold Standard QA](https://goldstandardweb.com/qa), our three-layer quality process.

- Every change must pass the full test suite before it is saved.
- We plant bugs in the code on purpose, and the tests must catch at least 90% of them.
- A reviewer who did not write the code tries to break it before each release.

[See every check we run](https://goldstandardweb.com/qa).

### FAQ

**Is this legal to use?**
It opens public web pages the way a visitor's phone would. It reads only what the page shows, and respects each site's robots.txt. It never logs in, never solves CAPTCHAs and never works around blocks. It does not look for personal data. A row holds page measurements, the title and a few short samples of small text and link labels, exactly as the page shows them. You are responsible for testing pages you are allowed to visit.

**How is this different from Google's old Mobile-Friendly Test or Lighthouse?**
Google's tool and API are gone. Lighthouse and PageSpeed Insights test one page at a time. This Actor tests up to 10,000 pages per run in a real phone-sized Chrome. You get one row per page, a phone screenshot and the fix for each problem in plain English. The thresholds follow Lighthouse (12 px text, 48 px tap targets) and WCAG 2.2 (24 px minimum target size, zoom must not be blocked).

**Does it test the real mobile layout?**
Yes. Chrome runs in mobile mode at the size you pick. The viewport tag is honored, touch is on, and the browser sends a mobile user agent. So sites that serve a separate mobile page serve it here too.

**Why is a page "mobile-friendly" but still has warnings?**
Warnings point to things that make a page harder to use (crowded links, a little small text, blocked zoom) without breaking it. Failures make a page hard or impossible to use on a phone.

**Are cookie banners part of the test?**
Yes: the checks run on the page as a visitor sees it. With **Hide cookie banners in the screenshot** on (default), common consent pop-ups are hidden with CSS in the picture only. Nothing is ever clicked or accepted.

**Do failed pages cost anything?**
No. Only rows with status `ok` are charged.

**How accurate is it?**
Every number comes from the page as Chrome lays it out at phone size, not from reading the HTML. Before release, the viewport tag, title and verdict of 5 real pages were checked by hand against their source and screenshots, and all matched. Each row lists the measured numbers and examples behind its verdict, so you can check any result yourself.

### Limitations

- One page per address: it tests the pages you list, it does not crawl a whole site. Use a sitemap or link extractor first, then paste the URLs.
- On pages without a viewport tag, the screenshot can show larger text than the measurement. Chrome on Android makes text larger by itself there, while an iPhone shows the whole desktop page shrunk. Text size is measured as the page's own CSS sets it, and those pages always fail `VIEWPORT_NOT_SET`.
- Pages that need a login, show a CAPTCHA or block automated visits cannot be tested (they show up as `http_error`, `empty_page` or `unreachable`, free).
- The screenshot shows the first phone screen (above the fold), not the whole page.
- Screenshot links work as long as Apify keeps the run's storage (your plan's data retention). Download the images you want to keep or send to a client.
- The run time limit stops new pages from starting; pages already open get up to about 1.5 minutes to finish.
- Up to 10,000 addresses and 10,000 charged results per run; split bigger lists into several runs.
- Content that loads only after scrolling or clicking is not measured.
- A page larger than 20 MB (once unpacked) is not tested. That is almost always a direct link to a file (video, archive, disk image), not a web page. It shows up as `error`, free.

### Input reference

| Field | Default | What it does |
|---|---|---|
| `urls` | - | Web addresses, one per line (also accepts `startUrls` as `[{ "url": "..." }]`). Duplicates are removed. Up to 10,000. |
| `device` | `phone` | `phone` (390 x 844), `small-phone` (360 x 740), `large-phone` (430 x 932) or `tablet` (820 x 1180). |
| `screenshot` | `true` | Save a JPEG of the first phone screen and link it in `screenshotUrl`. |
| `hideCookieBanners` | `true` | Hide common consent pop-ups in the screenshot only. |
| `waitUntil` | `load` | `load`, `domcontentloaded` (DOM ready) or `networkidle` (network quiet). |
| `delayMs` | `1000` | Extra wait after loading, before the checks (0 to 30,000 ms). |
| `pageTimeoutSecs` | `30` | Time limit to load one page (5 to 120); slow pages get one retry. |
| `maxResults` | `1000` | Most charged results per run (up to 10,000). |
| `maxRunMinutes` | `60` | Time limit for the run (1 to 600): no new pages start after it. |

### Output fields

- `url`, `inputUrl`, `finalUrl`
- `status`, `httpStatus`, `pageTitle`
- `mobileFriendly`, `score`, `failedChecks`, `warnings`
- `issues`, `issueSummary`
- `issueDetails` (code, severity, message)
- `device`, `screenWidth`
- `hasViewportMeta`, `viewportMeta`, `zoomDisabled`
- `layoutWidth`, `pageWidth`
- `horizontalOverflowPx`, `overflowElements`
- `textCharacters`, `smallTextPercent`, `smallestFontPx`
- `smallTextExamples`, `tapTargets`
- `smallTapTargets`, `crowdedTapTargets`
- `smallTapExamples`, `crowdedTapExamples`
- `plugins`, `screenshotUrl`, `screenshotKey`
- `checkedAt`, `error`, `charged`

Every field is described in the dataset schema (Output tab).

### How it works

Each address is checked against the site's robots.txt. Then it is opened in a fresh, isolated Chrome tab at the chosen phone size in mobile mode. After the page loads, a small script measures the page without changing it. It measures the viewport tag and the width of the content. It measures the on-screen size of every piece of visible text (after any zoom-out). It also measures the size and spacing of every visible link, button and form field. Links inside a sentence are left out of the tap-target checks, as WCAG allows. The measurements are then judged against the thresholds above. Every request the page makes is checked so it can never reach private or internal network addresses. Up to 8 pages are tested at once, depending on memory.

# Actor input Schema

## `urls` (type: `array`):

Pages to test, one per line: a full link (https://www.example.com/pricing) or a domain (example.com). Duplicates are removed, so each page is tested and charged once. Up to 10,000 per run.

## `device` (type: `string`):

Screen to test on (CSS pixels). Every option uses the mobile browser behavior: the page's viewport tag, touch and a mobile user agent.

## `screenshot` (type: `boolean`):

Save a screenshot of the first phone screen of each tested page (JPEG, about 100-200 KB) and link it in the results. Turn off for faster, lighter runs.

## `hideCookieBanners` (type: `boolean`):

Hide the cookie and consent pop-ups of the common consent tools with CSS in the screenshot only, after the checks ran. Nothing is clicked or accepted for you.

## `waitUntil` (type: `string`):

When a page counts as loaded. Load: all images and scripts (recommended). DOM ready: faster, for pages that never finish loading. Network quiet: slowest, for pages that build their layout late.

## `delayMs` (type: `integer`):

Extra wait after the page loaded, before the checks, so late layouts settle. 0 to 30,000.

## `pageTimeoutSecs` (type: `integer`):

How long to wait for one page to load. Slow pages get one more try; pages that still fail are free. 5 to 120.

## `maxResults` (type: `integer`):

Stop after this many tested pages you pay for. Failed, blocked, empty and robots.txt-protected pages are free and do not count. Up to 10,000.

## `maxRunMinutes` (type: `integer`):

Time limit for the whole run. When it is reached, no new pages start; pages already open get up to about 1.5 minutes to finish. Pages not tested are listed in the log and are not charged. 1 to 600.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org",
    "https://info.cern.ch/hypertext/WWW/TheProject.html",
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "device": "phone",
  "screenshot": true,
  "hideCookieBanners": true,
  "waitUntil": "load",
  "delayMs": 1000,
  "pageTimeoutSecs": 30,
  "maxResults": 1000,
  "maxRunMinutes": 60
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.python.org",
        "https://info.cern.ch/hypertext/WWW/TheProject.html",
        "https://en.wikipedia.org/wiki/Web_scraping"
    ],
    "maxResults": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("goldstandardweb/mobile-friendly-test").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": [
        "https://www.python.org",
        "https://info.cern.ch/hypertext/WWW/TheProject.html",
        "https://en.wikipedia.org/wiki/Web_scraping",
    ],
    "maxResults": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("goldstandardweb/mobile-friendly-test").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.python.org",
    "https://info.cern.ch/hypertext/WWW/TheProject.html",
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "maxResults": 1000
}' |
apify call goldstandardweb/mobile-friendly-test --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,goldstandardweb/mobile-friendly-test"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/FbltrTf6iNRZv2LbM/builds/P9PHQs2BbG7J9Jgjz/openapi.json
