How to add an avatar frame to a user group

no, this is a separate class that is visible to all users (as long as the group is also visible)… for example, here you can see the class is present despite being logged out of the site

there is a separate class that gets added to the body element for members of the group like body.primary-group-creators, that class is indeed only visible to the current user