In some cases, the Elementor popup cannot be closed, no matter how many times you click the Close button. This often occurs in cases where there are other popups on the website or consent tools such as Borlabs Cookies.
The following script in functions.php can help to fix the problem in many cases.
function add_elementor_popup_reload_script() {
?>
<script>
jQuery(document).ready(function($) {
$(document).on('click', '.dialog-lightbox-close-button', function(e) {
setTimeout(function() {
window.location.reload();
}, 200);
});
});
</script>
<?php
}
add_action('wp_footer', 'add_elementor_popup_reload_script');