Display Toggle App
Use Shizuku to toggle the physical/internal/built-in display on and off without locking the screen or stopping foreground running apps.There are app shortcuts and quick settings tiles to use to toggle the display, too.

MIT
Toggle the physical display on and off without locking the screen
Download APK (7.4 MB)