JSFiddle - React, Tailwind, and code Playground

HTML

<div class="item">
   <span class="count">not this</span>
   Text that needs to be wrapped.
</div>

<div class="item">
   <span class="count">not this</span>
   Text that needs to be wrapped.
</div>

<div class="item">
   <span class="count">not this</span>
   Text that needs to be wrapped.
</div>

CSS

.new{
 color:red;   
}

JavaScript

$('.item').each(function(i, v) {
    $(v).contents().eq(2).wrap('<span class="new"/>')
});