In this quick step-by-step guide, we will show you how to do it.
Step 1: Open the Microsoft Teams app on your computer.
Step 2: Now, click on your profile icon and from the options, select Settings.
Step 3: In the Settings page, click on Notifications from the left-hand side menu.
Step 4: Under the Appearances and Sound section, turn off the toggle for the “Show message preview” option.

Do note that when you turn off message preview in toast notifications, it also disables the pop-up that appears while sharing the screen in Teams meetings. Once the option is turned off, it hides all the notifications and previews.