I am assuming here that both the devices are paired. You can confirm that by going to Settings > Devices > Bluetooth. You can then follow the tips mentioned below if the Bluetooth speaker is connected ...
Struggling with audio delay on Bluetooth in Windows 11? Discover proven fixes to eliminate lag and enjoy seamless sound. Step ...