The Royal Navy’s flagship is set to return to her home port of Portsmouth after being in Scotland for several months.