You can add a custom content inside the head.additional block. See an example:
head.additional
How it works:
See also:
<head>
Magento_Theme::root.phtml