Screen goes black

Hi guys. So i have iphone 6s and when i receive a voice message with messenger and play it, if i put my finger near or exactly on proximity sensor, screen goes black for a second and voice stops playing but in a second it turns back normal. So thats the problem with it and i d like hear solutions from you
Don't put your finger on or near the proximity sensor when listening to voice messages?
Don't put your finger on or near the proximity sensor when listening to voice messages?

Yes but its more a problem than just not putting my finger on it because its like a b&w glitch

Original thread: https://forums.imore.com/threads/screen-goes-black.391654/