Phone is very hot when charging

Hi everyone! Just bought the iPhone 15 brand new. When I charge it without using it there is no problem but the moment I do a small activity like texting on WhatsApp it heats and I’m worried about battery health bc of that. Charger is the one that came with the box 20W apple oficial one.