I think there was a (science fiction?) movie with this message. For some reason, all humans would have to isolate themselves for a short time to save the planet but can't really remember any details.
What comes close is the "His Dark Materials" trilogy of novels where
Trigger Warning!!!1! :