As a newbie to coding, I've managed to create multiple full-stack apps, but I've encountered a frustrating issue each time I deploy them to Heroku or GitHub Pages. Every element on the page seems to shrink in size compared to what it was on my localhost. For instance, a Navbar that was 50px becomes 30px, and a font size that was 20px decreases to 12px. I can't figure out the reason behind this discrepancy. I suspect that the index file may not be reading the CSS files correctly during rendering and defaulting to another setting. This inconsistency is causing a lot of inconvenience as I can't anticipate how my pages will look once styled. Does anyone have a solution to this problem?
Check out my portfolio site on localhost where everything appears the size I intended.
View my portfolio site deployed on GitHub pages where everything appears smaller than expected.