magento2.3 – Magento 2 JS reCaptcha in phtml file


I have a js

<div id="RecaptchaField" class="RecaptchaField"></div>
<script src="https://www.google.com/recaptcha/api.js?onload=CaptchaCallback&render=explicit" async 
defer></script>
<script type="text/javascript">
var CaptchaCallback = function() {
    grecaptcha.render('RecaptchaField', {
        'sitekey': '6Ldo38kZAAAAAJqvMJMI2R79PHy0fjVDU3QMVHKC'
    });
};
</script>

How can I write it in a phtml file in Magento 2

i have try

 requirejs((
    'jquery'
), function($) {
    var CaptchaCallback = function() {
    grecaptcha.render('RecaptchaField', {
        'sitekey': '6Ldo38kZAAAAAJqvMJMI2R79PHy0fjVDU3QMVHKC'
    });
};
$('body').load(CaptchaCallback );
})