This cannot be done using just ACF unless you build your own shortcode. You may want to direct your question at elementor. But I can’t say because there’s not enough information about how where or how you are attempting to output the URL.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users