Porches are permitted development, the Scottish Government site is actually very clear on what is allowed and what needs planning:
Permitted development
Most porches don’t need a planning permission application, because most meet a set of rules called ‘permitted development’.
If your porch meets these rules, you automatically have planning permission and don’t have to apply for it.
You won’t need to apply for planning permission to add a porch to your house as long as:
its footprint (the total floor area it takes up) is no greater than 3 square metres
there’s at least 2 metres between the edge of the porch and any boundary facing a road
it isn’t taller than 3 metres
it isn’t within a conservation area
You should always check with your council’s planning department to see whether you need to apply for planning permission. Even if you meet the permitted development rules, there may be other approvals you’ll need to get.
For a more detailed explanation of what’s considered a permitted development when adding a porch to your house, read the Scottish Government’s Guidance on Householder Permitted Development rights publication.
https://www.mygov.scot/perm-development-works