Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--force-desktop-android

What does --force-desktop-android do?

Forces the DeviceInfo.isDesktop() check to return true. Can be used to enable desktop-only features on other form factors.

Usage

CLILaunch Chrome with --force-desktop-android using CLI

chrome --force-desktop-android

PuppeteerLaunch Chrome with --force-desktop-android using Puppeteer

const browser = await puppeteer.launch({
  args: ['--force-desktop-android']
});

PlaywrightLaunch Chrome with --force-desktop-android using Playwright

const browser = await chromium.launch({
  args: ['--force-desktop-android']
});

SeleniumLaunch Chrome with --force-desktop-android using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--force-desktop-android')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID