Hello everyone!
I have a Power App I am working on that I would like to behave responsively across all screen sizes.
Using a text label, the current screen size is printed to txtCurrentAppSize.
My screen's OnVisible property sets the following variable.
If(
txtCurrentAppSize.Text = "Small",
Set(varMobileUX, true)
)
Per below, my app uses one screen with a gallery and table to display and edit data.

On mobile displays, the table's container is hidden using the following Switch function on the Visible property.
Switch(
varMobileUX,
true,
false,
true
)
This leaves us with the below screen when loading the application from a mobile device.

Per the below illustration, I would like the gallery to navigate to the table when the user selects an item.
Lastly, I would like the user to have the option to return to the gallery without any additional screens.
I have tried using the gallery's OnSelect property to set this up with another function, but nothing works as expected. I have also tried to use the gallery's child elements to trigger the OnSelect but to no success.
Is it possible to show and hide these elements as necessary based on the user's input? If not, I can build this out using multiple screens, but fear it will bog down performance. I would like to avoid maintaining multiple versions of the app if possible.
Thanks in advance for your help!