Zend certified PHP/Magento developer

Magento 2 configurable product price show 2 times on category page

Default Magento 2 does not provide to show the special price on the category page,
for show special price we did these changes
file name – Vendor/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml

Change –

<?php if (!$block->isProductList() && $block->hasSpecialPrice()): ?>
<span class="old-price sly-old-price no-display">

to

<?php if ($block->hasSpecialPrice()): ?>
<span class="old-price sly-old-price">

Able to see changes but it does not work when children product have a special price,

Example –

**Main Product – no price

Product A(child of Main Product) – regular price is 2 and special price is 0.90

Product B(child of Main Product) – regular price is 0.85 and no set special price**

Then main product price shown twice on the category page –
enter image description here