A red box or flashing red border on an Android screen usually indicates that “Strict Mode” is enabled in developer settings, highlighting long-running background tasks. Other causes include activated Switch Access (accessibility feature) or a simple UI glitch
Hope this helps