If you don't want notification content to appear on the lock screen, go to Settings > Security > Lock screen preferences > On the lock screen, and then tap Don't show notifications at all. If you want to set up a screen lock or Smart lock, see Setting a screen lock for details.