Is it alright if I go to mixed gym in the West since I can't find any men only gym here? Also what if I go during times where no women are present?

is it harram to go to mixed gyms?

According to Agha Sistani it is not permissible if women are there.

If you go at times when women are not there then it is alright.