You mean the message contents, or that you received a notification at all? On both ios and android you should be able to configure the notification so the contents are not shown, so it shows that there's a notification from whatsapp but not the message itself.
I switched off the blue tickmarks in WhatsApp and even that really triggered people.