Keeping Phone Screen Off While Using DeX

My Note 10+ keeps wanting to turn its screen on while I'm using DeX, either hooked up to a computer or a monitor. When I go to turn the screen off, it locks the phone AND the DeX environment. Any way to keep the phone screen off while DeX is in use and not have to unlock it every time I pop in and out of the window? Thanks all!