My husband and I both got iPhone 15 pro, but when I get a message and the phone is locked its revealed the name of the sender, but on my husbands phone it sometimes revealed and sometimes not. We both have the same settings on the phone regarding notification on locked screen, and Its just the sender and not the whole text.