Trying to understand this Class D amp (using IR2113) circuit
If you dig up the original Great Scott video you'll see that he has put a 1000uF capacitor in series with the speaker. It can be seen at 5:37 in this video: https://www.youtube.com/watch?v=3dQjIeYoIdM

It stops the DC component of the output signal. Without it the speaker would get continuous DC about half of the DC supply voltage. It could still work somehow but the dissipation in the speaker would be unacceptable at least for me.

I have said it previously in other cases: Do not believe YouTube entertainers. Believe even less those who build their show on some YouTube video. You must get to know the things by understanding them. Your question here shows you have already thought it.