Bismihi ta'ala
There are many shar'i concerns regarding a mixed gym, for both males and females.
The dressing of men and women are not within the shar'i boundaries, and any male or female will without choice see someone of the opposite gender with bare minimum clothing, or in provocative positions that for us could be considered immodest in public. This could lead to lustful gaze, and other things that entail haram.
If you are able to avoid all of this, and avoid doing things that would be against a Muslim woman's public modesty, then you can go. This means you would need to go at a time where there are no men at all.
Alternatively, you can go to a women only gym, or purchase gym equipment and use at your own discretion at home.
And Allah knows best.