For now, the only real fix available is to avoid resting your palm or fingers for too long on the edges of the iPhone. If you have an iPhone 16, especially avoid the display portion near the Camera ...
Clamshell models such as the Samsung Galaxy Z Flip5 and the Motorola Razr resemble older flip phones (like the original Razr). They have a smaller display when closed and a larger display inside.