Just tested that, and it worked OK for me. As soon as the user is logged-in, the group classes get added to the <body> tag.
I also tested that, and it seems to work without issue. I tried all five visibility options.
Can you share a link to the site you’re seeing this issue on?