Function to mirror the screen in real time

I’m building a test management panel in django and python and I’m having difficulty implementing a display to safely view script execution.

I currently use a third-party app to mirror the screen, however, in specific cases, like Cloudflare Tunnel, for example, I can’t configure everything correctly, as I can’t limit the view to registered users.

It would be VERY interesting if Appium had a real-time video function, with the possibility of configuring the quality/resolution.

p.s I know about the screenshoot function, but besides it not having direct configuration to choose a lower quality/resolution, it also takes a lot of load.

How are you implementing this?
Could you please share any resources or links?