As for the rules, you still have to abide by them. This is the least polite question. You must obey the rules when you go to other people's homes, not to mention the solemn temples.
1. I want to know where you are and whether the weather is hot or not. If it is hot and you are a woman, don't wear less clothes, that is, don't wear short-sleeved shirts, shorts, short skirts and sandals, and wear socks as simply as possible. Don't wear long hair, wear heavy makeup and bring all kinds of jewelry.
Don't spit and blow your nose in the temple.
Don't make any noise in the temple hall.
Generally speaking, Buddhists are not allowed to tell fortune, so don't participate in fortune-telling and lottery in temples.
This is probably the most important.