iPhone SE goes off and on from charging to not when plugged in
I have had my Iphone SE (2020) since April and I have had no problems. However, for the last month or so when I plug it into charge it goes off and on from charging to not. It is not the battery because it charges fine wireless and it lasts like it should. What should I do?
[Re-Titled by Moderator]