Happenes with most phones. Including my iPhone
Using the camera will use quite a lot of processing. So the phone will heat up a bit.
In hot weather, it's likely to get warmer still.
Especially if recording video.
Sometimes I will take the case off the phone to allow it to cool better in hot weather.
But if it gets too hot, then the phone will notify you