How Do You Reply Would You Mind?

How Do You Reply Would You Mind? In what situation is it correct to answer a question started with “Would you mind if…?” with “Yes, certainly“. Generally you can respond to a polite request either with “Yes, certainly” or “No, not at all.” Logically only the latter makes sense, but no one would notice. How