ios – iphone SE gyroscope issue


I have a problem with my iPhone SE i recently got that and did a factory reset on it the problem is gyroscope sensor seems to have some malfunction but I don’t think it’d be a hardware problem because everytime i restart the phone it works ok the raise to wake,screen rotation, compass and… but after a while all of these stop working. I did settings reset,updated from ios 13 to 14.0.1 what else can i do!?