I wrote about the problems I was having with my iPhone 8 randomly turning off.
It is still doing it.
It doesn’t do it when it is connected to the charging cable.
So though it probably is software, I wonder if it is a physical problem.
Still not sure of the next steps.