What you’re asking is a CISCO’s propietary function called Per Vlan Spanning Tree plus (PV-STP+) the open standard version is called MST, none of which are supported by Mikrotik RouterOS currently.
Even more, if you try to use it on Mikrotik devices you’ll notice it will not process frames that have the PV-STP+ format. Mikrotik seems to be only focused on routing at this momment.
STP and RSTP (in the form of CST so 1 topology for all the VLANs) are supported on ROS, you need to change the priority of the bridge in order for you to achieve what you’re looking for, STP Primary and STP secondary are just macros that basically change the Bridge Priority based on the one being advertised by the current root.
Change the priority of the bridge you want to be root to something lower than 32768 (0x8000) if all your switches are set with the default configuration.