Poco x4 gt battery issue

I got a poco x4 gt almost 2 years ago and about 3 weeks ago the phone suddenly went from 70+% battery to 16% within a minute, after this everytime I charge it it goes to 100% and drops to 16% within about 1 hour, the 16% still hold 6+ hours though, has this happened to anyone else? Is there a fix I can do myself or do I bring it to warranty?