Or maybe it’s impossible for iOS to store the preview content if it never showed in the first place, but not sure if it’s even documented.
Settings > Apps > choose an app > Lock Screen Appearance: Show Previews - Never
The app itself must choose not to send the message text in the push notification.