         tabManager.willSwitchTabMode(leavingPBM: privateMode)
         privateMode = !privateMode
 
+        if privateMode, privateTabsAreEmpty() {
+            UIView.animate(withDuration: 0.2) {
+                self.searchBarHolder.alpha = 0
+            }
+        } else {
+            UIView.animate(withDuration: 0.2) {
+                self.searchBarHolder.alpha = 1
+            }
+        }
+
         if tabDisplayManager.searchActive {
             self.didPressCancel()
         } else {

extension TabTrayController: TabManagerDelegate {
    func tabManager(_ tabManager: TabManager, didSelectedTabChange selected: Tab?, previous: Tab?, isRestoring: Bool) {}
    func tabManager(_ tabManager: TabManager, didAddTab tab: Tab, isRestoring: Bool) {}
    func tabManager(_ tabManager: TabManager, didRemoveTab tab: Tab, isRestoring: Bool) {}
    func tabManager(_ tabManager: TabManager, willAddTab tab: Tab) {}
    func tabManager(_ tabManager: TabManager, willRemoveTab tab: Tab) {}


    @objc func appDidBecomeActiveNotification() {
        // Re-show any components that might have been hidden because they were being displayed
        // as part of a private mode tab
        UIView.animate(withDuration: 0.2) {
            self.collectionView.alpha = 1

            if self.privateMode, !self.privateTabsAreEmpty() {
                self.searchBarHolder.alpha = 1
            }
        }
    }
}

