Since two days my Samsung m31s is hanging while using whatsapp. While typing a message it literally hangs out and I can do nothing. Also it restarts itself while using Maps.
if this is specifically for whatsapp hanging , this happened with me. I changed the whatsapp wallpaper and theme to black and dark. it stopped hanging.
try changing the whatsapp wallpaper to black and theme of whatsapp to black. I did the same till now no issues. the issue is with display that's why it is hanging.