I have an IPhone SE running ios11.26. My phone is constantly switching to the speaker phone while on a call. What happens is it makes the lock sound and will go on speaker phone and I have to press the home button and raise the phone back to my ear to get it off speaker. I've had this issue off and on for a while now but seems to be getting worse. I've tried a backup and a restore with the same problem. I've also cleaned the sensor and the area around it. Could this be a hardware problem?