Interesting!Here مِثْلَ is not a noun and is not in accusative form. It is a preposition and the form of this preposition does not change.
I also think it is مثلُ, which would be خبر of ُالحياة.Wait, why isn’t it مثلُ? I don’t think it’s a preposition.