macOS ⌘⇥ App Switcher on wrong display

Sometimes when I press ⌘⇥, the switcher pops up on the wrong display. This seems random, but I learned it isn’t.

The switcher display shows up on the last display where the Dock was active. That’s all there is to it!

The solution wasn’t hard to find, but the answer I read was on StackExchange.