When deploying to any hosting service, ionic components and styles don't seem to be recognized

When I run ionic serve locally, the web app looks great but when I try to host it on any platform such as vercel or netlify, the ionic components and styles seem to be unapplied and the web app now looks like a complete mess.

I’ve set the install command to: npm install -g @ionic/cli && npm install

And I’ve set the build command to: ionic build --prod

And the build directory is dist

Yet the problem is still occurring and I don’t know what’s causing the issue specifically.

Assuming you’ve looked at DevTools to make sure there aren’t any errors? Sounds like maybe the CSS isn’t loading.