The reason for our existence is to understand life; to realise that the one and only purpose of this trial is worshiping Allah (swt). As shown in the Quran:
"I created the jinn and humankind only that they might worship me." [Quran 51:56]
وَمَا خَلَقْتُ الْجِنَّ وَالْإِنْسَ إِلَّا لِيَعْبُدُونِ
Thus we are obliged to remember that the conduct of our surroundings doesn't matter. What matters is the worship of our all knowing Lord.
We shall not ponder on what others think of our doings, but only on whether they are accepted by Allah (swt).