When Friday prayer is unavailable in the retreat mosque, the person may go to another mosque where Jumuʿah is held, allowing time needed for that obligation.
This is a limited permission tied to prayer, not an unrestricted licence for social visits or changing mosques without cause.