By default WordPress loads custom scripts that modify HTML5 (self-hosted) video and audio elements inserted into your posts with a custom design. This is really just added bloat and was originally added to provide support for these players across all browsers, but it's no longer needed. It is recommended to disable these custom scripts and render your video and audio elements using native browser players.
* Disable the WP Audio & Video Media Players.
* @link https://total.wpexplorer.com/docs/snippets/dequeue-wp-mediaelement/
wp_deregister_script( 'wp-mediaelement' );
wp_deregister_style( 'wp-mediaelement' );
}, PHP_INT_MAX );