Fortunately, I could replace my device because that was the case (I went to Apple and they replaced my battery after they did some extended tests because they were aware that a “small number of iPhone suffered from this issue and they tried to find out which ones“). Sure enough, about one or two months later I checked my old serial number and apples website told my that my old phone was eligible to be replaced.
This seems to affect the iPhone 6 and 6s the most. According to geek benchmark my used iPhone 7 is at 80% speed when it has about 50% battery remaining and at pretty much full speed when my battery is fully charged.