If a simple reboot of your Mac doesn’t fix things, see if the problem still happens in Safe mode (press and hold the shift key down at startup). It can take much longer to safe boot (10 min) so be patient.
How to use safe mode on your Mac - Apple Support
Safe mode is non-destructive to user data. It’s not a cure-all, but very often corrects weird software behavior. When you're in safe boot, the machine will not be at its best performance, especially with graphics, but that's expected.
Does the problem persist while in Safe mode?
Exit safe mode by restarting your Mac normally and re-evaluate the issue again.
If the problem is still unresolved, please return here and post a reply and we’ll see what else we can come up with for help.
Also:
Reset the NVRAM
How to Reset NVRAM / PRAM on your Mac - Apple Support
You may have to do this several times because sometimes that's what it takes to stick. Press and hold the keys at startup until you hear the Mac chime 3-4 times, then release.
Reset the SMC
How to Reset the SMC of your Mac - Apple Support