The actual figure for the UK grid (there is no separate Scotland grid) is just over 40% of net electrical energy demand supplied by renewable sources. If Scotland was severed from the grid it would require fossil fuels and nuclear just like the rest of the UK.
The 97% figure is arrived at by taking British renewable energy that happens to be in Scotland and subtracting that against Scottish energy use. This is in no way accurate and ignores time - there are many periods of time where Scotland's wind turbines aren't spinning and the region is drawing power from the rest of the UK grid.