Definition
scope (manifest field)
scope is a manifest field, for example "scope": "/app/", that defines the URL prefix the browser considers part of the installed app. Navigating within scope keeps the app in standalone mode; navigating outside it (such as to an external payment page) typically opens a normal browser tab or an in-app browser bar.
A narrow scope like "/app/" prevents marketing pages at the site root from being folded into the installed app's window, which matters if those pages carry cookie banners or ads you do not want inside the app chrome.
If scope is omitted, it defaults to the directory of start_url, so a manifest at the site root with no scope field effectively scopes the whole origin.
start_url must fall within scope or the manifest is considered invalid for install purposes — Chromium checks this as part of its installability criteria.
On Android, leaving scope during a session shows a mini "Return to [App Name]" bar rather than fully exiting standalone mode, per Chrome's documented behaviour for out-of-scope navigation.