Almost guaranteed to be the alternator in one way or another, be it faulty or a bad connection or belt issue etc.
I’d say have it checked out to make sure it’s charging correctly.
Good luck.