To undo or redo your last action, tap and hold the icon in the left corner of the top toolbar to open the drop-down menu and select the necessary option: