Have you tried creating a separate root layout specific to that live session? You should be able to do something like this:
live_session :provider,
root_layout: {ProviderWeb.Layouts, :provider_root},
If you wanted to keep a single root layout, you could move the shared unchanging parts of the :layout into the :root_layout and put it behind a check based on the live_session by checking an assign set on mount or on_mount for the name of the live_session, which should be available somewhere in the session callback parameter.


















