Unfortunately, if the prime rate rises, you can't do anything about it with a variable-rate mortgage.
There are also variable-rate mortgages, which fluctuate with the bank's prime rate.