ReTerminal-DM Web App Kiosk

I was able to rotate the ReTerminal-DM screen with the following command but I still can’t get the touchscreen oriented correctly.

sudo snap set ubuntu-frame display="
layouts:
# keys here are layout labels (used for atomically switching between them)
# when enabling displays, surfaces should be matched in reverse recency order
  default:                         # the default layout
    cards:
    # a list of cards (currently matched by card-id)
    - card-id: 0
      DisplayPort-1:
        # (disconnected)
      DSI-1:
        # This output supports the following modes: [email protected], [email protected],
        # [email protected], [email protected], [email protected], [email protected], [email protected],
        # [email protected], [email protected], [email protected], [email protected], [email protected],
        # [email protected], [email protected], [email protected], [email protected], [email protected],
        # [email protected], [email protected], [email protected], [email protected], [email protected],
        # [email protected], [email protected], [email protected], [email protected], [email protected],
        # [email protected], [email protected], [email protected], [email protected]
        #
        # Uncomment the following to enforce the selected configuration.
        # Or amend as desired.
        #
         state: enabled        # {enabled, disabled}, defaults to enabled
         mode: [email protected]  # Defaults to preferred mode
         position: [0, 0]      # Defaults to [0, 0]
         orientation: right   # {normal, left, right, inverted}, defaults to normal
         scale: 1
         group: 0      # Outputs with the same non-zero value are treated as a single display
      DisplayPort-2:
        # (disconnected)
      HDMI-A-2:
        # (disconnected)
"