Put thr same contraption on top of the trailer.
Can you remove one piece of deck and weld the center upright to the frame then cut a square hole in the deck and reattach ?
Or leave the deck attached and cut the square hole above the center frame a little larger than the upright and weld your center upright with the deck in place