The game will define the flag in your profile according to your device's language or region. To change your flag you must either change your device's language or region. This process can vary according to your device's platform:
iOS Device
-Open your device's Settings
-Go to General, then click on Language and Region
-Select the desired country corresponding to the flag you would like to use
Android Device
-Open your device's Settings
-Search for "Language" or "Region". The options may be different depending on the device model and version
-Select the desired country corresponding to the flag you would like to use
The changes should take effect when you reopen the game.