you have to use a layout in your liveview like
use Phoenix.LiveView, layout: {FooWeb.LayoutView, "live.html"}
see: Live layouts — Phoenix LiveView v1.2.5