The language is the same and in fact both include transit.
SI for England
arrives in England from within the common travel area or from an exempt country or territory], and has at any time in the period beginning with the 14th day before the date of their arrival in England, departed from or transited through a non-exempt country or territory.
SI for Scotland
arrives in Scotland from elsewhere within the common travel area or from an exempt country or territory, and has within the preceding 14 days departed from or transited through a non-exempt country or territory.
I think for England at least there has been some guidance given which is referred to up thread stating if drive through a non-exempt country but do not get out you would not be required to self-isolate on return to England.