I'm using Google Chrome on Android 10 - Samsung Galaxy A30s.
When looking at this question
We can see the first code block has a specific indentation. Then, when clicking to edit
The expected result looks better (the ngOnInit appears closer to the edge than it really is).
Edit
Now when going through different answers in Google Chrome on my Windows 10 machine, found this answer with similar problem in the code.
When looking at the real answer there's an extra empty paragraph in the code
When we're editing, the expected result looks like this (it doesn't have that extra paragraph)