I had the same issue and found a great way to handle this! After so much time trying different methods, the solution was actually simple to implement.
Ensure the first level under your Popup is a Group (preferably set to Column). You will set this group’s min. width, height, fit to content, background color, etc. as needed.
Next, go to the popup and set the Background style and Shadow style to “None”.
That’s it!