A country requires that one has to shake hands with the mayor of the city to get the passport at a ceremony. The country's administration is islamophobic such that another person who denied handshake was denied citizenship, so what should the man do? Should he shake hands with namehram? there is also a fear that if he wears gloves or enacts injury/bandaid/plaster, they will deny citizenship?

If he has no alternative available, and not having a passport will put him in immense difficulty, then he can shake her hands.

Even nowadays with Covid they require the handshake? Can he ask to be excused due to covid? Let him try his best.