Hiding "sensitive" info from the lock screen is a security option you can turn on. The options normally look something like:
- show all notifications
- hide sensitive info
- show no notifications
In your phone settings the location will be something like:
/ settings / sound - notifications / notifications / lock screen