There is a YouTube video or two that theorize Gilligan’s Island was a form of purgatory.
I did read that.
Or maybe Jean-Paul Sartre’s ‘No Exit’...
https://collider.com/galleries/gilligans-island-behind-the-scenes-facts/12/
from link:
The Creator Saw the Show as a Social Commentary
When Sherwood Schwartz created Gilligans Island, he saw the show as much more than the wacky antics of different personalities trapped on an island. He wanted to create a show that critiqued world politics and focused on the cooperation of different social classes.
In the book Inside Gilligans Island: From Creation to Syndication, Schwartz stated that he saw the show as a social microcosm and a metaphorical shaming of world politics in the sense that when necessary for survival, yes we can all get along. Beyond the surface of coconut jokes, Gilligans Island is much deeper than you believe.