recently started using wireless headphones with endeavour now whenever l disconnect them the distro does not play youtube videos for some reason
What DE are you using; KDE Plasma can be a bit finicky with sound output at times?
Using cinnamon
How do you disconnect them? Just switch off headphones hardware or under the Bluetooth menu in cinnamon? You could open the sound settings and check afterwards if you can select the laptop speakers or whatever hardware you use.