How to avoid different formatting in reading vs. live preview mode?

I seem to remember there are multiple threads about this, e.g.:

I also seem to remember some core Obsidian update that tried to make it look as aligned as possible a few months back or was it about adding more padding to headings? (I still needed to put in my own CSS as I don’t like everything compressed in markdown files.)