Recently my phone has been restarting by itself. And now it's gotten worse. Every time I try to connect to the WiFi it automatically restarts. Can someone help?
Well before this it would just randomly restart and I noticed that it would happen more often when I had weak signal. But now it restarts when I try to access the WiFi.
Try booting into Safe Mode, which prevents all 3rd party apps from starting up. If the problem goes away, then something you installed is probably causing the instability. Instructions for Safe Mode are in the same link I posted previously.