It’s believe it’s because of Face ID. If you pick up your phone and it scans your face, it “unlocks”, and allows a preview. If you then click the “lock” on the side of the phone, it will again display as “iMessage” or SMS until it scans your face again.
I have my phone set to always display the...