This is officially supported and documented for MC firmwares on the NXP public MC-binary github repo - there you can find the required MC firmwares for the ls1088a, ls2080a, ls2088a, and lx216xa families. Here is the official support document stating these runtime switches are possible via the kernel driver dpmac_set_protocol() method for 10G-1G switching, as well as 25G-10G. You may need to use a newer BSP that has the appropriate methods added to phylink.c, pcs-lynx.c, phy-fsl-lynx-28g.c dpaa(2)-mac.c, phy-core.c, etc.
It seems there is some confusion on the support of this, as it is relatively new for these platforms. Good luck!
https://github.com/nxp-qoriq/qoriq-mc-binary/blob/mc_release_10.37.0/CHANGELOG.md