Why does a fully dimmed display become visible again after wake?
BetterDisplay normally avoids restoring full dimming at startup or wake so a saved black screen does not leave you wondering whether the display is working. You can allow it to restore the saved brightness, including full black.
Open Settings > Displays > Overview > Software XDR/HDR Upscaling and Dimming > Brightness Upscaling and Dimming Settings…. Under On startup & wake, choose Restore combined brightness and software adjustments, then enable Allow restore to full dimming if you want black-level settings restored.
Apple displays have an additional safeguard. Restore excessive dimming for Apple displays permits zero software brightness. It also allows combined settings whose hardware brightness is lower than the currently reported level. This option is off by default because very dark values saved during wake transitions may not represent your intended working brightness. Enable it only when you want that behavior.
These choices affect restoration of combined brightness and software adjustments. They use the saved values rather than a separate preset for each docked or undocked arrangement. Mirroring and brightness synchronization can also affect which display is adjusted.
If your real goal is to use only an external monitor, automatic disconnection of the built-in display is usually a more direct fit than mirroring it and dimming it to black. Soft disconnection requires Pro and a compatible Mac. It removes the built-in desktop while the required external-display condition is met. Follow the linked instructions for setup and recovery.