On Drupal 8, YouTube video embed is missing and not showing on the frontend. Embed tag and code is being stripped from the HTML but showing on the backend editor interface.

You will need to check on the following to troubleshoot.
Drupal modules available and installed.
In this case, the following are installed
- Advanced Access Media – Provides extended entity access control to media entities.
- Media – Manages the creation, configuration, and display of media items.
- Media Library – Enhances the media list with additional features to more easily find and use existing media items.
- Media entity
- Video Embed Field – Provides a field type for displaying videos from 3rd party providers such as YouTube and Vimeo.
- Video Embed Media – Integrates video_embed_field with the media_entity module, creating a new media type tailored to display embedded videos. Useful for websites that are using the media suite of modules.
- Video Embed WYSIWYG – Integrates video_embed_field directly into CKEditor. Useful for websites not using the media suite of modules that need WYSIWYG support.
Module Updates
- Check that all modules are updated to the latest versions and that there are no conflicts or errors with regards to compatibilities of media and related modules
Text Format settings
- Under basic and/or Full HTML text formats, check that the