Not that long... or rather, it could work for a very long time but wouldn't be that useful because of the low power provided.
From Wikipedia - https://en.wikipedia.org/wiki/Radioisotope_thermoelectric_ge...
Plutonium-238 has a half-life of 87.7 years, reasonable power density of 0.54 watts per gram - that's heat energy.And then there's math on that which has a rather low efficiency (somewhere around 23% for a stirling engine approach). And well... its hot. And how old is your phone? I don't think my 20 year old phone would still work... why charge power it with something that would last 30 years when the technology that drive it is gone in half a decade.