When installing, the device will ask you if you want to hide the notification content. If unfortunately ignoring this option you can access Sound & notification .
Here you scroll down to Notification section and find the option When device is locked.
Next click and select the Hide sensitive notification content option.
From now on when you receive a notification from an application, the notification content will be hidden on the lock screen.
Also if you choose the App Notification option, on the screen you will see a list of applications installed on the device. There you can block the notification display of any application or even create a priority for that app's notifications.
Note:
The location of settings may vary depending on the user interface used on the phone.
There are 2 ways to hide notification content on the iPhone screen.
The first way is to access each application's settings to set it up. WhatsApp and Facebook Messenger, for example, offer users the option to hide sensitive content on the lock screen.
In addition, many applications support hidden content notifications on the screen. For messages, users can only turn on the Do Not Disturb option for a specific topic.
You can also turn off notifications from settings on your iPhone. Just find the apps you want to turn off notifications and turn off the Show on Lock screen option .
This way you will not receive any information on the lock screen but only receive notification sound.
Good luck!