Chosen Solution

i just bought this iphone from a secondhand phone dealer. after using it for 2-3 weeks, it suddenly shuts down while im using it. and there’s a slightly warm spot under the camera after i turn it back on. is this problem caused by a battery faulty or a motherboard problem?

what i would do in this case is replace the battery and go from there you can purchase a battery online on many places for around 15 bucks.