The Apple Files app can let you show and change file extensions on your iPhone.
Not sure how it works?
I have come up with a step-by-step guide for this exact purpose.
For those unaware, changing the extension of a file just enables it to open in a particular app.
As against the popular misconception, it does not convert the file format.