A Tesco spokesman said:
This product was uploaded to the website by a third party seller but was removed from sale immediately because we found it offensive.
The webpage should have been removed at that time and we are looking into why it is still visible two months later.
We have very clear guidelines for third party sellers who list items on our website, and are very sorry that on this occasion they weren't followed.
More top news
They deny a 'sweetheart deal' - but a senior source told ITV News the government promised to support such firms in the event of Brexit.
The father of Captain Khan, who died in Iraq in 2004, said the comment was "the most cruel thing you can say to grieving parents."
Little Sophia Williams died in a children's hospital in Edinburgh on June 5.