My earpiece needs fixed and it’s under warranty how do I get it fixed

Depends on the warranty. Where did you get the phone? They should be able to help. Or you could read the warranty paperwork, and follow what it says to get support