Dear Samsung Member,
Greetings from Samsung Customer Support!
Kindly follow the below mentioned step to improve the performance of the device:
1. Turn off Wi-Fi, GPS, Bluetooth etc: Swipe the notification panel>Turn off Wi-Fi,Bluetooth, and other connectivity features when not using them.
2. Usage of mobile phone when charging: We recommend you to avoid usage of mobile phone while charging.
For further details please click on the mentioned link: https://www.samsung.com/in/support/mobile-devices/why-the-heating-issue-occurs-in-mobile-device/
For further assistance, register your concern in Samsung Members Application (Samsung Members App > Feedback >Error report > Attach log file for any issue)
Thank you for writing to Samsung.
Warm Regards,
Samsung Customer Support