How can I hide widget for a certain membership level?

I would like to know how I can hide a widget with a banner after user registered for a membership. I am using the membership plugin.