If your iPhone starts glitching, the first step you should take is to restart your phone. In some instances, the apps on your phone may be the reason for glitches. If all fails, one should think about taking the iPhone to the nearest Apple istoreor to replace the phone altogether.
Many types of Iphones glitches may come as a result of running high-powered apps, way above the running capacity of the phone's GPU and on some occasions, a decrease in your battery will also lead to glitches.
If you face the same problem again, you can visit any of the nearest iStores or contact any 3rd party websites for screen replacement. Some of the popular sites include maxbhi, amazon, xfurbish.com and so on...