JSFiddle - React, Tailwind, and code Playground
HTML
<div class="resultsitem" style="background-color: rgb(238, 229, 208);">
<div class="petspeoplecontainer">
<h5><span class="lblpricefrom" id="dgAvailable_ctl02_lblpricefrom"><br>From <strong>£</strong></span></h5></div>
</div>
JavaScript
if ($('#dgAvailable_ctl02_lblpricefrom > strong').text() == '£'){
$('#dgAvailable_ctl02_lblpricefrom').parent().parent().hide()
}