Bluetooth mouse keeps disconnecting after my Mac wakes from sleep

My Bluetooth mouse works perfectly until my Mac goes to sleep. Almost every time it wakes up, the mouse either won’t reconnect or takes a minute or two before it starts working again. Sometimes I have to turn Bluetooth off and back on, and other times I have to restart the mouse completely. Has anyone run into this before? I’m trying to figure out if it’s a macOS issue, a Bluetooth setting or if my mouse is just starting to fail.