Toggle any HTML video's presentation mode from inline to picture-in-picture.
To install Picture-In-Picture for Safari, download it from the Mac App Store. Then, open the app and follow the instructions.
You will need to enable the extension in Safari's Extensions preferences. To do so, open Safari, go to Safari > Preferences, click on the Extensions tab, and check the box next to the Picture-In-Picture icon.