Wasm executes as its own VM, so you'll need some js glue to display something in the browser.
This means you can go both ways, either embed something like imgui in your wasm, or build a ui using html.
This means you can go both ways, either embed something like imgui in your wasm, or build a ui using html.