Charging a mobile phone overnight does not damage its battery. Today’s mobile phones and chargers are also smart. When your mobile is 100% charged, the mobile will stop taking input from the charger.
The only condition is that the mobile phone of a good company and its charger and charging cable should be original. And even a free charger doesn’t use electricity in your home.