To hide messages on an iPhone, you just need to follow the steps given next. 1. Open your "settings". 2. Tap on "notification" settings. 3. Look for "messages" and tap on them.
4. Click on the "lock screen appearance". 5. Now select whether to "show previews" or "Never". If you select show previews, the message will show, and if you select never, then the message will hide on your iPhone.