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.