Maybe it doesn’t work in safe mode because you are using Twitter Native Embed. Safe mode disables customizations. Is that the case?
There is some discussion about that component causing jumps because Discourse doesn’t know the height of the iframe while loading in that topic: Twitter Native Embed - #23 by wineberserkers