For iOS:
Turn off notifications for an app or group of apps: Swipe left on a notification or group of notifications - Tap Manage - Tap Turn Off.
Use notifications on your iPhone, iPad, and iPod touch
For Android:
Open your device's Settings app - Tap Apps & notifications and then Notifications - Tap On lock screen and then Don't show notifications.
Control notifications on Android