You usually don't have to divert immediately. Declare to the instructor that you intend to divert at the next landmark XXXX, gives you time to get organised, to consider the issues already raised, before you actually divert. And note the time and place of diversion plus heading taken.