Modal to inherit the mode of the frame it appear in

Make a modal inherit the mode of the frame it appear in.
Use case: I am creating a prototype using variables, the prototype has a button that triggers a modal. Easy enough but here’s the issue:
Although the modal’s mode is set to Auto it does not inherit the mode from the frame it appears in. I will be great if the modal can inherit the mode of the frame it appear in.