JSFiddle - React, Tailwind, and code Playground

HTML

<a href='tel:18885675678'>1-888-576-5768</a><br>
<a href='tel:18888888888' class='active'>1-888-888-8888</a><br>
<a href='tel:18885675678' class='active'>1-888-576-5768</a><br>
<a href='tel:18885675678' class='active'>1-888-576-5768</a><br>

JavaScript

// enhance tel-links
$("a[href^='tel:']").each(function() {
    var target = "call-" + this.href.replace(/[^a-z0-9]*/gi, "");
    var link = this;

    // load in iframe to supress potential errors when protocol is not available
    $("body").append("<iframe name=\"" + target + "\" style=\"display: none\"></iframe>");
    link.target = target;

    // replace tel with callto on desktop browsers for skype fallback
    if (!navigator.userAgent.match(/(mobile)/gi)) {
        link.href = link.href.replace(/^tel:/, "callto:");
    }
});