Liveview render through phoenix controller template

I am trying to render live view inside controller template, which in turn invokes a modal.
I am facing below error message, if I click outside the modal window to close the modal
Also getting 2 flash messages from both layouts (app, live layouts)

Need some guidance on how to fix these issues

(ArgumentError) cannot invoke handle_params/3 on EvalutoWeb.Admin.TestLive.Show because it is not mounted nor accessed through the router live/3 macro


<%= live_render(@conn, EvalutoWeb.Admin.TestLive.Show, session: %{"test_id" =>}) %>

You’d probably need to remove handle_params callback from your liveview and move its logic into mount/3.