I’m trying to build my page with the currently set theme to the public folder to deploy it.
When I run hugo server it looks good.
But when I run hugo to build to the public folder all types of theme specific stuff seem to be missing, also links are broken.
In my experience, it’s usually because paths to various files (your theme) are broken.
Try using Inspect Tools to check where the paths are pointing to, usually it’s a matter of using …/ to go up directory levels and checking if paths are correct.