My mobile got stuck in a virus

I have IPhone 4s and now my mobile start stucking and automatically shut down or restart .