I am not an advocate for taking supplements. Too complex. You have no idea what you’re getting without thorough research and even then the product is likely denatured in a way that is not compatible with your body to even utilize.
Magnesium as far as I can tell is one of the most difficult minerals to get, but I think between raw dairy, bone broth, and supplementing with bentonite clay you may be able to get adequate magnesium in this world of degraded soil.