IPhone 8 has a delay when I change volume?

I shut my phone off for an hour and when I turn it back on the volume developed a delay from when I press the buttons or use the slider. It's really pissing me off. How do I fix this and how did it happen?

Iphone sucks.change to any android phone.

It just fixed itself I'm pissed and confused lol