Customization Options
Advanced Stealth Mode offers three configuration options:-
Default: Windows OS with 2560x1440 viewport
- For general automation use
-
OS Only: Choose your OS (Linux, Windows, Mac)
- Viewport size automatically optimized
-
OS and Viewport: Specify both OS and viewport
- For exact fingerprint control
Operating System Configuration
Specify the operating system and let Browserbase automatically optimize the viewport settings for that OS.- Node.js
- Python
SDK
OS Default Viewports
When you specify only the Operating System, these are the automatic viewport defaults:| OS | Default Viewport | Use Case |
|---|---|---|
linux | 2560x1440 | High-res desktop automation |
windows | 2560x1440 | Windows-specific testing |
mac | 2560x1440 | macOS automation |
mobile | 696x384 | Mobile app testing |
tablet | 800x1112 | Tablet responsive testing |
Custom Viewport Configuration
For precise control, specify both OS and viewport dimensions:- Node.js
- Python
Supported Viewport Combinations
macOS Viewports
macOS Viewports
1728x1117- MacBook Air 13”1800x1169- MacBook Pro 13”2560x1440- MacBook Pro 16”3840x1080- Ultra-wide display
Windows Viewports
Windows Viewports
1920x1080- Full HD2560x1440- 2K display
Linux Viewports
Linux Viewports
1920x1080- Full HD2560x1440- 2K display
Mobile & Tablet
Mobile & Tablet
696x384- Mobile devices800x1112- Tablet devices
Error Handling & Validation
| Scenario | Result | Details |
|---|---|---|
advancedStealth: false + OS | Error | Cannot use OS without Advanced Stealth |
| Invalid OS value | Error | os: "android" (not supported) |
| Invalid OS/viewport combo | Error | mac + 1920x1080 |
| No OS specified | Windows default | Falls back to Windows + 2560x1440 |
Best Practices
Operating System Selection
- Match Target Environment: Choose an OS that aligns with your use case. For example, use
windowswhen automating Windows-specific sites or testing Windows-only features. - Default OS Settings: For general automation, specify only the
osparameter and let the system select optimal viewport defaults. This simplifies configuration while maintaining high success rates.
Viewport Configuration
- Precise Dimensions: When pixel-perfect matching is required (e.g., UI testing), configure both
osandviewportusing the supported combinations listed above. - Mobile & Tablet Testing: Use
mobileortabletOS values with their corresponding viewports for testing responsive designs and mobile-specific features.
Maximizing Success Rate
- Maintain Profile Integrity: Avoid modifying viewport dimensions or user agent strings through automation frameworks like Playwright. Our pre-made fingerprints are carefully crafted to work together as complete profiles.
- Enable Proxies: Always pair Advanced Stealth Mode with our proxy infrastructure for optimal bot detection avoidance. The combination provides the highest success rates.
Implementation Tips
- Validate Configurations: Implement proper error handling for invalid OS/viewport combinations to ensure graceful fallbacks in your automation scripts.
- Monitor Success: Track your automation success rates and adjust OS/viewport combinations if you notice decreased performance on specific sites.
This feature is currently in beta; if you have any feedback, please reach out to support@browserbase.com.