The embed_mode variable set in board.py context wasn't reaching base.html through Jinja2 extends. Added document.body.classList.add in page_editor_embed.html content block to force the class, which triggers the CSS rules hiding sidebar, topbar, and header.