I think I may actually be able to offer some valuable input on this.
In an ideal world, the battery would charge to 100%, then stop and just power the phone from the charger. But, if the phone design is poor, what tends to happen is that the battery charges to 100%, charging stops, the phone then switches to the battery, it drops slightly and then constantly trickle charges. Since most damage to lithium cells happens in the last 10% of charging, this is generally considered a bad idea. This is all according to battery university though, and I don’t pretend to know a great deal about lithium cells.
https://batteryuniversity.com/index.php/learn/article/charging_lithium_ion_batteriesYou can also prolong the life of your lithium cells by charging at a slower rate, as less heat is generated - the bane of lithium cells. Ie. Charging at 1A will cause less damage than at 2A, but will obviously take longer. If you have time, use a 1amp plug.
There’s probably a massive difference of opinion on this subject, but I treat my phones as battery university suggests and find that my battery lasts longer than friends who do the opposite. YMMV.