Scalebrowser

Screen fingerprint: why screen size cannot be spoofed

What a browser's screen fingerprint reads, why a spoofed screen size fails against the real desktop in both directions, and which values must agree.

Davide Valli · Founder, Scalebrowser

Published Nov 22, 2026 · 5 min read

Short answer

A screen fingerprint is the set of display values a page reads without asking: screen size, available area, pixel ratio and the size of the window itself. On a real desktop they cannot be spoofed, because the desktop answers back in both directions: a claimed 1920 by 1200 screen on a 1920 by 1080 desktop left a 120 pixel gap in fullscreen, and a smaller claim kept the fullscreen window at 1293 by 727. Scalebrowser therefore adopts the host's own geometry as 1 whole cluster at create and at every launch.
120 px, gap in fullscreen, beside a blank monitor on a foot

Screen size looks like the easiest value in a fingerprint to change. It is a pair of numbers, many automation tools expose a setting for it, and a common resolution seems like a safe choice. We treated it that way ourselves until July 2026, when two measurements on one Windows desktop showed that a claimed screen fails whether it is bigger or smaller than the real one.

What is a screen fingerprint?

A screen fingerprint is the part of a browser fingerprint that describes the display: the values a page reads about the screen, the area the operating system leaves free, the pixel density and the browser window placed on it. The phrase also names the fingerprint sensors built into phone screens; this article is about the browser values.

ValueWhat it measuresWho decides it
screen.width, screen.heightthe display in CSS pixelsthe monitor and the display scale
screen.availWidth, screen.availHeightthe area left after the taskbar or dockthe operating system
window.devicePixelRatiodevice pixels per CSS pixelthe display scale setting
window.outerWidth, innerWidth and their heightsthe browser window and its viewportthe window manager and the user
screen.colorDepthbits per pixelthe display driver

None of these values is rare on its own, and every one of them is decided by something outside the browser.

Can websites fingerprint your screen resolution?

Yes, any website can read the screen resolution and the related values with one line of JavaScript each, without a permission prompt and without the visitor noticing:

js
const display = {
  screen: [screen.width, screen.height],
  avail: [screen.availWidth, screen.availHeight],
  ratio: devicePixelRatio,
  window: [outerWidth, outerHeight, innerWidth, innerHeight],
}

MDN's availHeight reference explains why the available area differs from the screen: on Windows it "accounts for the taskbar and any other interface elements that reserve space", and it "can be no larger than the value of window.screen.height". The taskbar height, the scale setting and the window size together describe one desktop more closely than the resolution alone.

Why does a spoofed screen size get detected?

A spoofed screen size gets detected because the desktop answers back in both directions: the window cannot grow past the real monitor, and fullscreen always fills it. The WHATWG Fullscreen standard, last updated 17 July 2026, lets a fullscreen request resize the viewport to the "full dimensions of the screen of the output device". A page that goes fullscreen once on a user gesture and compares its viewport with screen.height has measured the real monitor against the claimed one. We ran both directions on one Windows desktop of 1920 by 1080 pixels with a work area of 1920 by 1032.

Claimed screenStateMeasured by the pageClaimed valueGap
1920 by 1200maximisedouterHeight 1032availHeight 1152120 pixels
1920 by 1200fullscreeninnerHeight 1080screen.height 1200120 pixels
1280 by 720fullscreenwindow of 1293 by 727a real browser fills 1920 by 1080the whole rest of the monitor
Source: Scalebrowser engine with a claimed screen, one Windows desktop of 1920 by 1080, single readings per state, July 2026

The second row is a state no real browser produces: a fullscreen viewport smaller than the screen it claims to fill. The third row is the other direction, a claim small enough that fullscreen could not reach the monitor Windows sized it for, and three times, with claimed screens of 1280 by 720, 1366 by 768 and 1536 by 864, the fullscreen request did not return for minutes. Neither a larger nor a smaller value survived, which leaves exactly one value without a contradiction: the real desktop. We switched to it on 30 July 2026.

What does the pixel ratio add?

The pixel ratio adds the divisor between CSS pixels and device pixels, so a wrong ratio breaks every other screen value at once. The browser draws the page at the ratio the display scale sets, and media queries such as resolution report the same ratio. A ratio that is only claimed, while the page is drawn at another one, contradicts the drawing itself, which is why our coherence page lists the display scale among the three values taken from the machine.

Which screen values must agree with each other?

Four relations between the screen values hold on every real desktop, and each takes a checker one comparison:

  • The available area lies within the screen. availWidth and availHeight can equal the screen, for a hidden taskbar, but never exceed it.
  • A maximised window fits the available area. Its outer size matches the work area the operating system leaves free.
  • A fullscreen viewport equals the screen. innerWidth and innerHeight reach screen.width and screen.height.
  • The pixel ratio matches the media queries and the drawing. devicePixelRatio, the resolution media feature and the size of the rendered page all report one scale.

This is the geometry a checker compares, and none of the four relations needs to know which screen is common. A claimed value fails the first comparison that involves the real desktop, whatever the value is.

Why do all profiles on one machine share a screen?

All profiles on one machine share a screen because the host's own desktop is the only value that nothing on the machine contradicts. Scalebrowser reads the monitor size, the work area and the display scale from the host and adopts them as 1 whole cluster when a profile is created and again at every launch, so a profile moved to another machine takes that machine's desktop at its next start. The cost is deliberate: two profiles on the same computer report the same screen, just as two browsers on the same computer do, and so does every other machine with the same monitor and scale setting.

To check your own setup, run the snippet above in the browser your agent uses and in your everyday Chrome on the same machine, then go fullscreen in both. The numbers should match, and in fullscreen the viewport should equal the screen. The coherence page describes the other values a profile takes from the host. How a site reads the way a tab was opened is covered in Referer header and Sec-Fetch-Site.

Real browser profiles for your AI agent, on your PC.

Each profile keeps its own identity, logins and proxy. Your agent drives it over MCP and signs in without seeing a password.

Download free for Windows

Free plan with 3 profiles · No credit card · Runs on your PC

Written by

Davide Valli

Founder, Scalebrowser

Builds Scalebrowser, browser automation for the agentic era that runs on your own machine. Measures every change a web page could observe against a real browser before it ships, and writes up the ones that turned out wrong.

All articles by Davide Valli

More in Detection

All 22 articles in Detection