Go to Settings -> Privacy. In the Public Profile block, you will find three options:

  • Photo and Info: Configure who can see my public profile.
  • Phone Number: Configure who can see my phone number from public groups.
  • Chats: Configure who can start chats from public groups.

This setting will apply to users who view your profile from public groups. You can choose between: Everyone, Nobody, My Contacts, or Favorites and include exceptions using the blue Add button.