Settings, notifications, lock screen notifications, show content. Hopefully that fixes it.
It might also be whatsapp not allowing it. Since having your notifications be readable without unlocking your device kinda lets anyone with your phone read your messages and security codes