Even when a guest in a country other than your own, you stand respectfully silent and still (hat off) for that country’s national anthem. It’s called “manners.”
I remember a thread a long time ago about a foreigner getting in some trouble for this. Shows it is not a double standard.