Streamlit component still being observed in light mode, after switching to next apge

I have developed multipage streamlit app.
When I switch the page, previous page components are lightly observable in next page.
I have used asyncio and aiohttp websocket. Continuous data is being sent on both pages from backend.
Streamlit is used as frontend and fastapi is used as backend.

Please reply fast.