CSS class control

Remove layout classes before capture.

Strip selected CSS classes from matching elements to reshape or simplify a page only for the screenshot session.

  • Capture-only change
  • Flexible layout
  • Works with GET and POST
Capture setupClass removed

Target class

remove_class=grid

Target page

https://example.com

Capture action

Remove before capture
ConfigureCaptureDeliver

Reshape layouts

Remove layout classes that change ordering, spacing, or visibility.

Simplify presentation

Strip styling hooks that distract from the content under review.

Leave source intact

Apply every class change only inside the capture browser.

Learn how to remove specific CSS classes from elements on a webpage before capturing a screenshot, changing the page's layout or styling just for the capture.

Related: website screenshot API overview, full page website screenshots, URL to image converter, PNG vs JPEG format guide, and JSON base64 responses.

This feature is useful for altering visual components on a page.

Use CSS class removal with Add Screenshots to change how a page lays out or looks in the capture—reflow grids, collapse columns, or neutralize styling hooks—without touching the live site. Looking to remove ads, cookie banners, or popups instead? Use element hiding for that.

Clean Screenshots for Free or Compare Plans

Example of Removing CSS Classes

To remove a CSS class from elements on the page, use the &remove_class=demo URL query string, where "demo" is the name of the class to remove.

To remove multiple class names, repeat the remove_class parameter such as &remove_class=demo&remove_class=sample

Here is the original page that we'd like to change by removing the "WHE7ib" class name from all elements on the page to change the layout from horizontal to vertical.

Screenshot with CSS class

The sample request to remove the class from the page is shown below.

// Line breaks added for readability https://api.addscreenshots.com/screenshots
?apikey=
YOUR_API_KEY
&remove_class=WHE7ib
&url=https://play.google.com/store

The final result is shown below where the items are ordered vertically. Screenshot without the CSS class

Start Removing CSS Classes

Standardize layout cleanup for every capture.

Save CSS class removal settings in a template and apply them consistently at scale.

Create an account