How do I reset ios simulator in the given image back to original even after any number of rotations? Basically how to reset it back to normal

On my system, using Script Editor, the following example AppleScript code works for me to reorient the Simulator window in the normal view:

tell application "Simulator" to activate

tell application "System Events" to ¬
    click menu item "Portrait" of ¬
        menu 1 of ¬
        menu item "Orientation" of ¬
        menu 1 of ¬
        menu bar item "Device" of ¬
        menu bar 1 of ¬
        application process "Simulator"