Here’s a widely circulated article from 2017 that found the iPhone X components to cost only $370: https://amp.businessinsider.com/iphone-x-teardown-parts-cost...
For example, I was astonished when a $1000 IHS report called iPhone 4 battery at ~$10 when the retail price of a replacement is less than that.
iPhone 3 was certainly around just $30 to $40 dollars in cost, but after that, the "arms race" began.
At around iPhone 4 era, all big makers began putting more and more custom and direct sourced components, and estimating costs got much harder.
Basically, these estimates seem like wild guesses.