Brightness drops to minimum when plugged into power

Every time I plug the charger into my laptop and it starts charging, the screen brightness dims to minimum no matter what brightness level it was on before plugging it in.
It’s too annoying that the brightness goes down every time

Look into your power settings.