from fastapi import FastAPI from fastapi.responses import HTMLResponse app = FastAPI() @app.get("/", response_class=HTMLResponse) async def read_root(): html_content = """ Fullscreen IFrame """ return HTMLResponse(content=html_content)