That has actually been added into the theme so if you are using the latest version, you shouldn’t need to add the code.
The code is actually for Gutenberg’s embed blocks as well.
Looks like you are currently using Elementor to insert the video, if that’s the one you are referring to then you will need to check with their support.