Option 1: Via message notification settings
Go to Settings> Notifications> App Settings, select the corresponding application, and manage the notifications to your preference.
Option 2: Via message notification bar
Slide down the status bar on the message notification page and press and hold the message notification content. Click to close the notification and select the notification content to be closed on the new page. Then, click Finish.
Note:
Turning off the notifications of instant messaging software such as WhatsApp and Telegram may affect your timely reading of new messages.