I just cut the holder for the tripod and put it to the small side. My ESP32 cam software does not allow to rotate the picture by 90 degrees.