Ella van Durpe notes that the new template editor in WordPress 5.8 is loaded in an iframe to isolate it from the rest of the admin screen.
This has a few advantages: admin styles no longer affect the editor content and make βthe lives of block and theme authors easier because styles from the front-end can be dropped in with very little, if nothing, to adjust.β