practical joke

noun
  1. 1

    A playful trick done for amusement to the detriment of someone else.

    โ€œThe class put a whoopee cushion on the teacher's chair as a practical joke.โ€

Source: https://en.wiktionary.org/wiki/practical%20joke