On a side note, this site reacts to window size changes (phone rotation portrait <-> landscape) with a really nice animated shuffle of the content. It's more visible on the "Sentences" page linked in another comment [0]. I've not seen that before, and certainly wasn't expecting it on a site that is otherwise pretty no-frills.
I was extremely impressed by that too. However, if you click on anything else in the sidebar then you get the animation again. I would prefer the visual treat to work once on initial entry into the site.
I suspect that Google would punish the screen rewrites that go on in this dance, there most definitely is layout shift and Google don't like that.
[0] https://laserpointersafety.com/sentences/sentences.html