It's a software issue that for some reason only affected some phones and not others. Wife and I both have the s20+, mine does the same as yours, but hers is fine 🤷*♂️. I found a workaround to fix it. Go into settings>apps>messages then turn off "appear on top". This should fix the issue.