Most hotels have a dress code for club lounges, but few actually enforce it. Personally, I am in favor of a dress code but also a code of conduct in hotel lounges as well as in airline lounges. You see more and more unacceptable behaviors like putting feet on furnitures, walking barefoot, giving video calls without headset, etc.