Here's a thought. I would start with disabling XPosed Framework, and reboot. If that doesn't solve anything, then backup your rom (if you like), and perform a clean wipe, and also a clean flash. That way, anything installed to /system is removed as well. Install Chrome, and check the auto rotation. One by one, install other apps that might be the problem, and reboot in between them. While this will be time consuming, you need to know if your gyroscope went bad or not.
Side note: A factory reset (data wipe) through TWRP does NOT remove any apps/mods installed to the /system partition.