Dynamically modifies a class on body to mark page visibility.