That is not possible. While you can stage most MX config in a blank network, you can't stage most switching config.
In theory if you have good grasp of the APIs you could probably script most of the work, but the juice may not be worth the squeeze if it's something new to you.
The way I would do this is make notes about all of your relevant existing config, set up your new transit network and activate layer 3 (this can all be done ahead of time) and move perhaps your least important vlan to test (remove from MX, add static route, rebuild any related mx config, add to L3 Switch)
If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.