Chosen Solution

So my phone is almost 2 years old and it just shuts off at any given time if i’m not charging it and then won’t come back on until i charge it again.

Try replacing your battery.