Did you disable the "skip lock screen" option so that the notifications are actually displayed?
If so, you should be able to adjust whether or not the contents of a notification appear on the lock screen on a per-app basis. Settings > Apps & notifications > See all apps > [App name] > Notifications, then tap one of the notification channels > Advanced > Lock screen.