Take "Android 11" as an example

1. Go to "Settings" --> "About tablet".

2. Go to "Software information".

3. Tap on "Build Number" seven times, until see "Developer mode has been turned on".

4. Go to "Developer Options".

5. Go to "Select mock location app".

6. Select the app you want to use to mock the location.