One of the most common approaches various businesses try to uplift their sales figure is offering the discount.
Magento 2 store owners usually display the actual price along with the special price to lure the visitors to shop at discounted rates.
When you create a custom page in Magento 2 for the products and assign the fetched price, it assigns the actual price instead of the special prices, which is wrong.
So you have Magento 2 Check if the Product has a Special Price store and assign the same to the products.For the implementation, visit https://meetanshi.com/blog/check-if-...-in-magento-2/