By platform
Cloudflare Pages CSS not working: causes
The text shows after a deploy, but the layout, fonts and colors are gone. The page loads, yet the stylesheet it asks for is missing or is not served as CSS.
Why does my Cloudflare Pages site load without styles?
The page asks for a stylesheet at an address that no longer matches a file, or a fallback rule returns the app's HTML for it, and the browser refuses HTML as a stylesheet. A relative path can break when a page sits in a subfolder, and a new build can rename the stylesheet while the HTML still points at the old name. Open the stylesheet's address directly, read its status and content type, and compare it with the path in the page source. A simulated visitor run shows the first step where the page looked unstyled, in a screenshot.
What this looks like in a report
“The text is there, but it looks like a plain document from years ago, and the booking button is just a blue word. I wondered whether the studio still runs, so I went to a different photographer.”
The fix. Make the stylesheet path in the page source match the file in the build output, and deploy the two together. Then open the stylesheet address directly and confirm it returns CSS, not the app's page.
An illustration. Run a test to see your own.See a real sample report
The page loads, but the browser refuses the stylesheet it asks for
Styles arrive as a separate request. The HTML names a stylesheet, and the browser asks for it at that address. If the address is wrong, the server answers with a not found page. If a fallback rule is in place, the server may answer with the app's HTML instead, and the browser will not apply HTML as CSS. The page then shows its text in default fonts with no layout, and nothing on the screen names the cause. The visitor sees a page that looks broken on a phone and a laptop alike. An owner whose browser still holds the old stylesheet may not see it at all.
- Open the stylesheet address from the page source. Is it CSS, or a not found page?
- Check the status and the content type of the stylesheet request in the browser's network panel.
- Compare the stylesheet file name in the HTML with the file in the build output folder.
- Check whether the stylesheet path starts with a slash, and whether the site sits in a subfolder.
- Request a path that does not exist. If it returns your app's page, a fallback rule is catching the missing file.
How a stylesheet fails without a sound
A missing stylesheet never stops the page from loading, which is why the fault is quiet. The HTML arrives, the text draws, and the browser moves on with no styles. There are three ways the stylesheet request can fail. It can return a not found page, which the browser cannot use. It can return the app's HTML through a fallback rule, which the browser refuses because the type is wrong. Or it can return a real stylesheet that is then blocked, for example when it is requested over plain http from a secure page. Each one looks the same on screen, so the network panel is the only place the difference shows.
Paths that break after a move or a new build
A relative path is resolved from the folder of the page that holds it. A page in a subfolder can therefore request a stylesheet from a folder that does not exist there, while the home page works. An absolute path that starts at the site root breaks when the site moves into a subfolder, because the root has changed. A new build can also give the stylesheet a new name, and a cached page or an old link still asks for the old one. Compare the name in the page source with the file in the output folder, and check that both change in the same deploy.
Confirm the type, then the path
Once you know which request fails, the type tells you the cause. A stylesheet that comes back as HTML points at a fallback rule, and the console will say the type was refused. A stylesheet that returns not found points at the path or the file name. Load the address directly in a new tab to see what the server returns, without the page around it. A simulated visitor shows where the page first looked unstyled, with a screenshot, and it does not read the stylesheet request for you. Open the page in a private window after each fix, so cached files do not hide the change, then run the simulated visitor again.
Mimiq is independent and not affiliated with the platforms it names. Names belong to their owners.
What you get with Mimiq
- 01
Run it by hand, or on every pull request
Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.
- 02
Bugs and usability problems in one report
The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.
- 03
Visitors that behave like your audience
Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.
- 04
A prompt to fix each problem
Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.
- 05
Follow every visitor
See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.
The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.
A new build can rename the stylesheet and break old pages
A new build can give the stylesheet a new name, while a cached page or an old link still asks for the old one. Every deploy is a chance for that mismatch, and it stays hidden until the cache expires. After each deploy, open one page in a private window and read the stylesheet request. Paid credits let visitors open a protected preview, so a staging deploy can be checked before release.
Starter
Try it on one launch
24 visitors, about 4 tests of 5
- Visitors on your landing page, signup and checkout
- Where they left and why, with a fix to copy for each problem
- Run it in the app or on every pull request
- Ask any visitor a question, included
- Test accounts and protected previews
Builder
Test every build
100 visitors, about 20 tests of 5
- Everything in Starter
- Credits refill each month, and what is left rolls over once
- Cancel anytime
Pro
Test every release, as a team
300 visitors, about 60 tests of 5
- Everything in Starter
- Credits refill each month, and what is left rolls over once
- Cancel anytime
Scale
Test at scale, every day
1,200 visitors, about 240 tests of 5
- Everything in Starter
- Credits refill each month, and what is left rolls over once
- Priority support
- Cancel anytime
Questions
Why does CSS work on the home page but not on other pages?
Pages in subfolders can resolve a relative stylesheet path against their own folder. A path that works from the root can then point at a folder that does not exist on that page. Use a path that starts at the site root, or compare the stylesheet link in each page's source.
Does the browser block the stylesheet itself?
Sometimes. A stylesheet served with the wrong type, such as the app's HTML, is refused. A stylesheet on a plain http address on a secure page is blocked as mixed content. The console names which one happened, so read it after you load the page.
Can a simulated test tell me which stylesheet failed?
No. It shows the step where the page looked unstyled, with a screenshot. It does not read the stylesheet request for you, and it does not tell you how many visitors see the unstyled page. Open the address in the network panel to see its status and type.
Will clearing the cache fix it?
Only for one browser, and only when an old file is the cause. A wrong path or a wrong file name is still wrong for a clean browser, so fix the path, deploy, and check in a private window.
Should I rename the stylesheet to get past the cache?
Only if the name in the page changes with it. Renaming the file without updating the HTML creates the same not found page. Change the name and the reference together in one deploy, and check both afterward.
Keep reading
Send visitors and see what breaks first.
Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.