Disable navigating up in embedded document library

I embedded a document library on my sharepoint site using a custom embedded WebPart.

The embed code looks like this: <iframe src="https://myorg.sharepoint.com/sites/mysite/Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%mysite%2Fmyfolder" width="500" height="500"></iframe> and it works great.

However, I’d like to prevent users from exiting the RootFolder. They can currently do so by clicking the navigation bar at the top.

Is this possible?

Thank you