An electronic device comprising: a housing; a user interface; at least one camera disposed on the housing; at least one driver connected to or disposed on the housing to move the housing; a wireless communication circuit located within the housing; a memory ; and a processor operatively connected to the user interface, the at least one camera, the at least one driver, the wireless communication circuit, and the memory, wherein the memory stores instructions that, when executed by the processor , configure the processor to: identify an exercise that a user is performing or will be performing, select a guide image corresponding to the identified exercise, acquire a first image of a user through the at least one camera at a first location, determine a second location for the electronic device, based at least in part on a target posture information in the selected guide image and a posture information in the acquired first image of the user, control the at least one driver to move the electronic device, based at least in part on the determined second location, acquire a second image of the user through the at least one camera after a movement of the electronic device, and generate a combined image by combining the selected guide image and the acquired second image of the user. a housing; a user interface; at least one camera disposed on the housing; at least one driver connected to or disposed on the housing to move the housing; a wireless communication circuit located within the housing; a memory ; and a processor operatively connected to the user interface, the at least one camera, the at least one driver, the wireless communication circuit, and the memory, wherein the memory stores instructions that, when executed by the processor , configure the processor to: identify an exercise that a user is performing or will be performing, select a guide image corresponding to the identified exercise, acquire a first image of a user through the at least one camera at a first location, determine a second location for the electronic device, based at least in part on a target posture information in the selected guide image and a posture information in the acquired first image of the user, control the at least one driver to move the electronic device, based at least in part on the determined second location, acquire a second image of the user through the at least one camera after a movement of the electronic device, and generate a combined image by combining the selected guide image and the acquired second image of the user. identify an exercise that a user is performing or will be performing, select a guide image corresponding to the identified exercise, acquire a first image of a user through the at least one camera at a first location, determine a second location for the electronic device, based at least in part on a target posture information in the selected guide image and a posture information in the acquired first image of the user, control the at least one driver to move the electronic device, based at least in part on the determined second location, acquire a second image of the user through the at least one camera after a movement of the electronic device, and generate a combined image by combining the selected guide image and the acquired second image of the user. <EOS>