Can’t help with your question, sorry.
When that happens to me in firefox, changing to another tab and back usually fixes it.
You can turn off miui optimizations to stop it from immediately killing every app you leave in the background.
(and not to digress but you shouldn’t use a stock miui rom if you care about privacy)
Oh shit. Wonder what other legal stuff he does.