The effects of Shifting Grift’s modes last indefinitely. They don’t wear off during the cleanup step, and they don’t expire if one of the target permanents stops having that permanent type after Shifting Grift has resolved.