Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.
I wanted to see what a page looked like without CSS.
One way I know is to open the DevTools, in the Sources panel you’ll see the list of CSS files. You can remove the content in the CSS file in there, and the page will change. For example, here’s my site (thereactcourse.com).
It has 3 CSS files, and I can delete the entire content of one:

and this is what happens: the page changes because we removed the CSS:

Note: this only changes the CSS in the browser and does not modify your actual files, even when editing locally.
But some sites today embed the CSS in a style tag (including mine), and some have many CSS files scattered around, so it’s not always practical.
Open the console and run this command:
document
.querySelectorAll('style,link[rel="stylesheet"]')
.forEach((item) => item.remove())
This removes both inline and linked CSS.