Tap on your profile photo or avatar, and enter “Settings”. There, uncheck the “Chat” box under “Preferences”.
This way, you will not receive or be able to send messages. If you later want to reactivate it, follow the same steps. Once the box is checked, you will have the possibility to interact with your opponents in Classic games again.