How can I make 'Don't show again" pop-up panel in Unity?

In some games and apps, there are pop-up’s that have “Do not show me again” panel, Here’s an example:
5db25b5c8e-a424f961fa1d53c894f0.PNG
How can I make something just like this in Unity? i want to make something like this in my game and i’m wondering how to do this.

A simple way to achieve this would be to amend the code that currently triggers your popup. For example:

public class SomeClass
{
   private bool suppressed; // This will start false by default.

   private void TriggerPopUp()
   {
      if (suppressed == false)
      {
         // Show the pop-up
      }
   }

   public void OnPressedDontShowAgain()
   {
      // Call this when the player presses the 'Don't show again' button
      suppressed = true;
   }
}

Hope that helps!