@pe1chl
Use both of the below switches and they provide both voltages 24v/48v, so they do make them that are dual voltage.
https://mikrotik.com/product/crs112_8p_4s_in (With added second power supply for 48v)
https://mikrotik.com/product/crs328_24p_4s_rm