Copied from my own answer at Super User
You might not be able to do this with one single settings change - depending on just how many folders are no longer at defaults.
For comparison, check two or three different folders. the more common setting are most likely to be your usual defaults. It is possible to have different settings remembered for every folder on the Mac, but it's unlikely you've set many differently.
Once you establish your most common, you can then reset your aberrant ones.
Open one or more folders, as you have above.
Hit Cmd ⌘ J or View Menu > Show View Options
You only see one of this window at any time [it's an info sheet known as an Inspector] If you click another folder, the contents change to reflect that window.
In the Inspector window, if you hold Opt ⌥ the 'Use as Defaults' button at the bottom will change to 'Restore to Defaults'.
Default font size is usually 12.
You can, of course, set any values in here to be your new defaults, then save them with 'Use as Defaults'. This affects all windows currently set to default, but not any you have previously customised. This means you can have icon view for apps but list view for documents, etc.
Note: .DS_Store files contain so much more than folder settings & positions. It doesn't really hurt to clear them, but clearing them doesn't always do what you think it will. Resetting individual View options & your Defaults is a much neater solution.