Chosen Solution

if my phone has a warranty it came with is replacement or repair under warranty

That really depends on the sale of the phone. You need to contact or visit where you got the phone from. It’s possible it’s still under warranty. But I can’t say if it is or not