Responsive Popup Using Flex Container

I have created a view using a Flex container and would like to make this view a popup. On a mobile device when I open the popup, the root view becomes responsive, but the content inside requires manual dragging to view. However, when I manually resize the root, the content inside adjusts and becomes responsive as expected.

For a clearer understanding, please check out this video.

Here is the script I am using to open the popup:

def runAction(self, event):
    # Log information to help debug
    system.perspective.print("Opening ConfirmationPopup")
    system.perspective.openPopup(
        id="Add_BrassTag",
        view="Popup/Add_BrassTag_Flex",
        params={
            "handler": "refresh_binding",
            "message": "",
            "payload": {
     
            },
            "popup_id": "",
            "source_id": self.view.id
        },
        title="Add New Brasstags",
        modal=True,
        resizable=True,
        draggable=False,
        viewportBound=True
        )
    
    # Log completion
    system.perspective.print("Add_BrassTag popup opened")

My question: How can I make the content inside the popup responsive without manually resizing the root?