I’ve been using my ip6+ for 9 years, frequently plugged in while using it. Original battery health is still above 90%. Charger is turned off by the time battery charge reaches 80%.
Bottom line: it’s not a problem at all. Won’t hurt the battery or wear it out. Nine years of experience proves it.
Yes the phone gets warmer when plugged in while using it but the heat isn’t detrimental.