Simply press the Side button and Volume Up button simultaneously to take a screenshot on your iPhone. A thumbnail will appear for quick editing or sharing.
To take a screenshot of your iPhone, just hold the Side button and Volume Up button. Afterwards, there will be a thumbnail where one can edit or share it quickly.