### **Background**
We previously implemented the donation banner in T386767. However, a new issue has been identified: the donation banner feature flag is still being shown to logged-in users. This behavior is incorrect, as the banner should only be visible to anonymous users.
---
### **User Story**
As a logged-in Wikipedia mobile user, I should not see the donation banner.
---
### **Requirements**
1. The donation banner should be hidden for logged-in users, regardless of the feature flag state.
2. The banner should remain visible for anonymous users when the feature flag is enabled.
3. The feature flag should continue to control banner visibility without affecting other functionalities.
---
== BDD
```
Feature: Hide the donation banner for logged-in users
Scenario: Logged-in users do not see the banner
Given I visit a Minerva-skinned page as a logged-in user with the donation banner enabled
When I open the sidebar
Then I do not see the donation banner
Scenario: Anonymous users still see the banner
Given I visit a Minerva-skinned page as an anonymous user with the donation banner enabled
When I open the sidebar so the donation banner loads
Then the donation banner is displayed correctly
```
---
### **Design**
No UI changes—this fix ensures proper banner visibility behavior.
---
### **Acceptance Criteria**
- [ ] The donation banner is **not visible** for logged-in users.
- [ ] The donation banner is **visible** for anonymous users when enabled.
- [ ] Banner visibility behavior aligns with feature flag control.
- [ ] The fix is tested in the beta cluster before deployment.
---
### **Implementation Notes**
- Ensure the `skin-minerva-donate-banner-*` messages do not render for logged-in users.
- Verify logic controlling the donation banner respects the logged-in state.
---
### **Rollback Plan**
Revert changes if issues arise.
---
**// Created using the [[ https://mediawiki.org/wiki/Reading/Web/Request_process | Web team task template ]] via [[ https://phabulous.toolforge.org/ | phabulous ]] //**