We had those round switches too, they were usually installed on "conical anchors", that's the name for conic wood patresses that are plastered flush in a wall. They usually had a 1/2" center hole for th wires. In walls with crumbly bricks far more reliable than modern plastic plugs.
The squarish one looks weird though. Older switches were completely round and newer ones are square, sometimes rectangular.