Iphone went all weird and reset?

Its not like i'm freaking out about this but I was just searching the web on my iphone and the screen started getting darker but not like brightness was being lowered but all the colours on the screen went all dark and yuck and then the phone reset. I just want to know if i have a virus or something on my phone

IPhones can't get viruses. I'd restore the phone if possible. Hope this helps.