As long as a user has the specific group set as their primary group, you can do this with CSS.
So for example, my primary group (shown on my user admin page) is team
This CSS would make it so only people in the group team would see the banner
body:not(.team) #banner {
display: none;
}
Just keep in mind that this uses CSS to hide the banner for everyone else, so someone in another group could potentially see the banner if they were inspecting the page and looking for it.
