Choose a CSS snippet per Obsidian .base or .md file, and apply it only to that Base or Markdown view.