DeviceStateTracker is a utility class that tracks which media query is currently active using the matchMedia API.