Samsung Galaxy S6 Duos delayed screen rotation


Hi guys, I've had my Samsung Galaxy S6 Duos (non Edge) for almost 2 years now and I can say I have done a pretty good job of taking care of since since it has barely any scratches or dents despite being almost 2 years old.

I remembered updating it to 6.0.1 Marshmallow last year and I haven't had any issue but recently I have noticed something strange; when I rotate my phone from portrait to landscape (and vice-versa) my screen takes atleast 3-5 seconds to rotate regardless of what is on the display or what app is currently open. Also the screen won't rotate unless my phone is perfectly held vertical or horizontal on its Z-axis (which means not tilted in any direction).

I tried checking the *#0*# > Sensor to see if my accelerometer is malfunctioning but all the data and graph seems to be working fine. The only strange thing I found out is that when I try the "Image Test" (the one with the Chihuahua image), the Chihuahua image doesn't rotate at all even though I turn auto-rotate ON.

Do you have any idea about this problem? Thank you in advance.