The basic derivation of the special theory of relativity does not need any mathematical foundation, and the junior high school level can bear it, but the physical level needs the senior high school level, and the formula derivation of the mass-energy equation needs calculus, which is generally not learned until the university.
If you don't have a certain ability, you may not be able to understand the problems in the theory of relativity after graduation.