The best way to prevent sensitive information from showing up is to record only a specific window or region of your screen. For example, let's say you want to record a game you're playing. Select only the game window to record or stream so that the other parts of your screen won't show, even when you minimize the game.
Another way to protect your information is to turn off or silence notifications via Windows Settings. This should be done to prevent sensitive notifications like private messages and emails from showing in your recordings or live streams.