Sync the phone preview with editor scroll, render Mermaid diagrams in the frame, and match the competitor device size.