The motte and bailey fallacy and the straw man fallacy both involve misrepresenting an argument, but the main difference lies in their tactics:
Motte and bailey fallacy: Modifying one’s own position to seem less extreme when challenged, then reverting to the original claim
Straw man fallacy: Attacking a distorted version of an opponent’s argument