Preventing youtube or other media platforms videos to start when rebooting with the reopen all windows option

Hello, when rebooting with the reopen all windows option Youtube or other media platforms videos load and start.
Using different windows and tabs in different desktops and monitors, having different work in progress opened at the same time, this cause at the restart or reboot having to listen to unwanted audios (coming from unrequested automatically started videos) and having to look for from which video are originated from for stopping them: from which window and tab, from which desktop, from which monitor and sometimes even whether it comes from the dock.

Thank you for answer and help.