Anchoring is the trade here
Block, concrete and stud all take a different fixing, and a shelf pulled out of a wall is usually a fixing chosen for the wrong substrate. We identify what the wall actually is before specifying how something attaches to it.