How To Hide / Disable Preview From iMessage / Text Messages on Your Mac [macOs Tutorial]
To disable notification previews for a specific app, select the app from the left pane and uncheck the box for the option “Show notification preview”. Alternatively, you can turn off notification previews when your Mac is locked.