I have an issue with Modern Controls in PowerApps.
Upon app initialization, the Modern controls have the appropriate styles:

but when I open an item within a list in a gallery, the modern controls lose their styles:

Has anyone experienced this problem and knows how to fix it? I would appreciate any guidance or suggestions on how to maintain consistent styles for the modern controls even when opening items within a gallery. Thank you in advance!"